summaryrefslogtreecommitdiff
path: root/tests/patcher_test_assert_boolean_logic.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patcher_test_assert_boolean_logic.py')
-rw-r--r--tests/patcher_test_assert_boolean_logic.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/patcher_test_assert_boolean_logic.py b/tests/patcher_test_assert_boolean_logic.py
new file mode 100644
index 0000000..d5a81cb
--- /dev/null
+++ b/tests/patcher_test_assert_boolean_logic.py
@@ -0,0 +1,19 @@
+# no standard tests in this file, ignore
+__test__ = False
+
+if __name__ == '__main__':
+ import os
+ from eventlet import patcher
+ from eventlet.support import six
+
+ call = os.environ['call']
+ expected = os.environ['expected'].split(',')
+ not_expected = os.environ['not_expected'].split(',')
+
+ six.exec_(call)
+
+ for mod in expected:
+ assert patcher.is_monkey_patched(mod), mod
+ for mod in not_expected:
+ assert not patcher.is_monkey_patched(mod), mod
+ print("already_patched {0}".format(",".join(sorted(patcher.already_patched.keys()))))