Пример #1
0
 def test_args_and_kw(self):
     self.assertEqual(nonliteral(self.object, *self.args, **self.kw), '<Foo 1 2 3 bar=40 foo=35>')
Пример #2
0
 def test_args(self):
     self.assertEqual(nonliteral(self.object, *self.args), '<Foo 1 2 3>')
Пример #3
0
 def test_kw(self):
     self.assertEqual(nonliteral(self.object, **self.kw), '<Foo bar=40 foo=35>')
Пример #4
0
 def test_empty(self):
     self.assertEqual(nonliteral(self.object), '<Foo>')