(self)
| 2896 | self.assertEqual(a.t(0.0), 0.0) |
| 2897 | |
| 2898 | def test_assignment_behavior(self): |
| 2899 | # see gh-106448 |
| 2900 | class A: |
| 2901 | @functools.singledispatchmethod |
| 2902 | def t(arg): |
| 2903 | return arg |
| 2904 | |
| 2905 | a = A() |
| 2906 | a.t.foo = 'bar' |
| 2907 | a2 = A() |
| 2908 | with self.assertRaises(AttributeError): |
| 2909 | a2.t.foo |
| 2910 | |
| 2911 | def test_classmethod_register(self): |
| 2912 | class A: |
nothing calls this directly
no test coverage detected