(self)
| 1179 | self.assertTrue(self._callFUT(foo.method)) |
| 1180 | |
| 1181 | def test_function_annotations(self): |
| 1182 | def foo(bar): |
| 1183 | """ """ |
| 1184 | |
| 1185 | # avoid SyntaxErrors in python2, this if effectively nop |
| 1186 | getattr(foo, '__annotations__', {}).update({'bar': 'baz'}) |
| 1187 | self.assertTrue(self._callFUT(foo)) |
| 1188 | |
| 1189 | |
| 1190 | class TestSimpleSerializer(unittest.TestCase): |