def check(self): expected = self.build_track() actual = translator(self.data) self.assertEqual(expected, actual)