(self)
| 50 | getattr(object, methodname)(*args) |
| 51 | |
| 52 | def test_data(self): |
| 53 | u = UserString("spam") |
| 54 | self.assertEqual(u.data, "spam") |
| 55 | self.assertIs(type(u.data), str) |
| 56 | u = UserString(u) |
| 57 | self.assertEqual(u.data, "spam") |
| 58 | self.assertIs(type(u.data), str) |
| 59 | u = UserString(42) |
| 60 | self.assertEqual(u.data, "42") |
| 61 | self.assertIs(type(u.data), str) |
| 62 | |
| 63 | def test_mixed_add(self): |
| 64 | u = UserString("spam") + "eggs" |
nothing calls this directly
no test coverage detected