'Test item model'

def test_model_item(self):

    type = ItemType(name='test')
    type.save()
    status = ItemStatus(name='test')
    status.save()
    obj = Item(name='test', item_type=type, status=status)
    obj.save()
    self.assertEquals('test', obj.name)
    self.assertNotEquals(obj.id, None)
    obj.delete()
