示例#1
0
 def test_should_not_convert_type_label_when_none(self):
     self.assertIsNone(ContactService.convert_contact_types(None))
示例#2
0
 def test_should_not_convert_type_label_when_none(self):
     self.assertIsNone(ContactService.convert_contact_types(None))
示例#3
0
 def test_should_partly_convert_type_label(self):
     pre_types = ['IMPLEMENTING_PARTNER', 'MIDDLE', 'END_USER']
     self.assertEquals(['IP', 'End-user'], ContactService.convert_contact_types(pre_types))
示例#4
0
 def test_should_partly_convert_type_label(self):
     pre_types = ['IMPLEMENTING_PARTNER', 'MIDDLE', 'END_USER']
     self.assertEquals(['IP', 'End-user'],
                       ContactService.convert_contact_types(pre_types))