MCPcopy
hub / github.com/Pylons/pyramid / test_function_annotations

Method test_function_annotations

tests/test_util.py:1181–1187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
1190class TestSimpleSerializer(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

_callFUTMethod · 0.95
updateMethod · 0.80

Tested by

no test coverage detected