MCPcopy Create free account
hub / github.com/EasyIME/PIME / checkSubclasses

Method checkSubclasses

python/python3/tornado/test/util_test.py:100–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 TestConfig3._restore_configuration(self.saved3)
99
100 def checkSubclasses(self):
101 # no matter how the class is configured, it should always be
102 # possible to instantiate the subclasses directly
103 self.assertIsInstance(TestConfig1(), TestConfig1)
104 self.assertIsInstance(TestConfig2(), TestConfig2)
105
106 obj = TestConfig1(a=1)
107 self.assertEqual(obj.a, 1)
108 obj2 = TestConfig2(b=2)
109 self.assertEqual(obj2.b, 2)
110
111 def test_default(self):
112 # In these tests we combine a typing.cast to satisfy mypy with

Callers 5

test_defaultMethod · 0.95
test_config_classMethod · 0.95
test_config_strMethod · 0.95
test_config_argsMethod · 0.95

Calls 2

TestConfig1Class · 0.85
TestConfig2Class · 0.85

Tested by

no test coverage detected