def test_path_str_repr(self ): kwargs = {'labels': [['a', 'b'], ['c']], 'objects': range(10)} path = Path(**kwargs) transformed = kwargs.copy() transformed['objects'] = [Result(o) for o in kwargs['objects']] self.assertEqual(eval(str(path)), transformed) self.assertEqual(eval(repr(path)), path)
def _make_result(self, value): # direct pass-through now return Result(value)