Test de full_adress OK
This commit is contained in:
parent
c6c518ff68
commit
8ffd023640
@ -46,14 +46,6 @@ class TestCoworkingCoworker(TransactionCase):
|
|||||||
self.homer.write({'street': u'42 Liberty Street', 'zip': False, 'city': u'Springfield'})
|
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')
|
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):
|
def test_manage_coworker_type(self):
|
||||||
""" Test that non-coworker have not coworker_type fixed """
|
""" Test that non-coworker have not coworker_type fixed """
|
||||||
|
Loading…
Reference in New Issue
Block a user