Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def _make_result(self, value):
     # direct pass-through now
     return Result(value)