def test_keyword_args(self): assert (represent(self.fb, bar='a', a='bar') == "FooBar(bar='a', a='bar')") assert (represent(self.fb, bar=([ 2.1, 'a' ], {}, 'foo', set())) == "FooBar(bar=([2.1, 'a'], {}, 'foo', set()))") assert (represent( 'bar', a=2.1, biz=['a'], foo=None, b=(4, 'moo')) == "str(a=2.1, biz=['a'], foo=None, b=(4, 'moo'))")
def __repr__(self) -> str: return represent(self, self.array_count, self.typecode, list(self))
def __repr__(self) -> str: return represent(self, self.position, self.rotation, self.meshes, self.width, self.height, degrees(self.fov))
def __repr__(self) -> str: shape_info = (list(self.points), list(self.triangles)) return represent(self, shape_info, color=tuple(self.color))
def __repr__(self) -> str: return represent(self, list(self))
def __repr__(self): cb = self._callback return represent(self, self.shortcut, cb.func, *cb.args, **cb.keywords)
def test_positional_and_keyword_args(self): assert (represent(self.fb, 2.1, a=3, b='bar') == "FooBar(2.1, a=3, b='bar')") assert (represent(self.fb, 2, 'bar', bar='v') == "FooBar(2, 'bar', bar='v')")
def test_positional_args(self): assert (represent(self.fb, 'bar', 3.43, [2, '2', 1]) == "FooBar('bar', 3.43, [2, '2', 1])")
def test_no_args(self): assert represent(self.fb) == 'FooBar()'