def test_should_not_convert_type_label_when_none(self): self.assertIsNone(ContactService.convert_contact_types(None))
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))