'Test item model'

def test_model_item(self):

    folder = KnowledgeFolder(name='test', treepath='test')
    folder.save()
    category = KnowledgeCategory(name='test', treepath='test')
    category.save()
    obj = KnowledgeItem(name='test', folder=folder, category=category, treepath='test')
    obj.save()
    self.assertEquals(folder, obj.folder)
    self.assertNotEquals(obj.id, None)
    obj.delete()
