def test_patch_all_env_override_httplib_enabled(self):
     monkey.patch_all()
     assert "httplib" in monkey._PATCHED_MODULES
 def test_patch_all_env_override_sqlite_disabled(self):
     monkey.patch_all()
     assert "sqlite3" not in monkey._PATCHED_MODULES
 def test_patch_all_env_override_httplib_none(self):
     # Make sure httplib is disabled by default.
     monkey.patch_all()
     assert "httplib" not in monkey._PATCHED_MODULES
 def test_patch_all_env_override_sqlite_none(self):
     # Make sure sqlite is enabled by default.
     monkey.patch_all()
     assert "sqlite3" in monkey._PATCHED_MODULES