Test de full_adress OK

This commit is contained in:
michel 2017-12-04 10:20:50 +01:00
parent c6c518ff68
commit 8ffd023640
1 changed files with 1 additions and 9 deletions

View File

@ -46,15 +46,7 @@ class TestCoworkingCoworker(TransactionCase):
self.homer.write({'street': u'42 Liberty Street', 'zip': False, 'city': u'Springfield'})
self.assertEqual(self.homer.full_contact_adress, u'42 Liberty Street Springfield')
with self.assertRaises(ValidationError) as err:
self.homer.write({'street': False, 'zip': False, 'city': False})
self.assertEqual(self.homer.full_contact_adress, u'Springfield')
self.assertIn('Full adresse is broken', unicode(err.exception))
def test_manage_coworker_type(self):
""" Test that non-coworker have not coworker_type fixed """
pass