Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1b2477 commit 37fad7dCopy full SHA for 37fad7d
1 file changed
Lib/test/test_operator.py
@@ -45,6 +45,18 @@ def __iter__(self):
45
46
47
class OperatorTestCase:
48
+ def test___all__(self):
49
+ operator = self.module
50
+ actual_all = set(operator.__all__)
51
+ computed_all = set()
52
+ for name in vars(operator):
53
+ if name.startswith('__'):
54
+ continue
55
+ value = getattr(operator, name)
56
+ if value.__module__ in ('operator', '_operator'):
57
+ computed_all.add(name)
58
+ self.assertSetEqual(computed_all, actual_all)
59
+
60
def test_lt(self):
61
operator = self.module
62
self.assertRaises(TypeError, operator.lt)
0 commit comments