def test_args_and_kw(self): self.assertEqual(nonliteral(self.object, *self.args, **self.kw), '<Foo 1 2 3 bar=40 foo=35>')
def test_args(self): self.assertEqual(nonliteral(self.object, *self.args), '<Foo 1 2 3>')
def test_kw(self): self.assertEqual(nonliteral(self.object, **self.kw), '<Foo bar=40 foo=35>')
def test_empty(self): self.assertEqual(nonliteral(self.object), '<Foo>')