def test_help_tags_colors(self): """Tags should have colors""" ds = ContactsDataSource() recs = ds.help_tags(self.company, ContactsFilter(), "east") self.assertEqual("aaaaaa", recs[0]['hexColor'])
def test_help_tags(self): """Check tags help works at all.""" ds = ContactsDataSource() recs = ds.help_tags(self.company, ContactsFilter(), "E") actual = {r['value'] for r in recs} self.assertEqual({'east', 'west'}, actual)