'Test asset model'

def test_model_asset(self):

    contact_type = ContactType(name='test')
    contact_type.save()
    contact = Contact(name='test', contact_type=contact_type)
    contact.save()
    obj = Asset(name='test', owner=contact)
    obj.save()
    self.assertEquals('test', obj.name)
    self.assertNotEquals(obj.id, None)
    obj.delete()
