+ def test_convert_to_labels(self):
+ cases = [
+ {'IDTAGIMPORTANCE': 'IDVALIMPORTANCE1'},
+ {'IDTAGIMPORTANCE': 'High'},
+ {'importance': 'IDVALIMPORTANCE1'},
+ {'priority': 'high priority'},
+ ]
+ for case in cases:
+ self.assertEqual(
+ self.voc.convert_to_labels(case),
+ {'Importance': 'High'},
+ "failing test case: {}".format(case)
+ )
\ No newline at end of file