{"action":"opened","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/25323","labels_url":"https://api.github.com/repos/saltstack/salt/issues/25323/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/25323/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/25323/events","html_url":"https://github.com/saltstack/salt/issues/25323","id":94333683,"number":25323,"title":"unit.modules.tls_test fails with older mock","user":{"login":"terminalmage","id":328598,"avatar_url":"https://avatars.githubusercontent.com/u/328598?v=3","gravatar_id":"","url":"https://api.github.com/users/terminalmage","html_url":"https://github.com/terminalmage","followers_url":"https://api.github.com/users/terminalmage/followers","following_url":"https://api.github.com/users/terminalmage/following{/other_user}","gists_url":"https://api.github.com/users/terminalmage/gists{/gist_id}","starred_url":"https://api.github.com/users/terminalmage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terminalmage/subscriptions","organizations_url":"https://api.github.com/users/terminalmage/orgs","repos_url":"https://api.github.com/users/terminalmage/repos","events_url":"https://api.github.com/users/terminalmage/events{/privacy}","received_events_url":"https://api.github.com/users/terminalmage/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Tests","name":"Tests","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-10T15:50:11Z","updated_at":"2015-07-10T15:50:11Z","closed_at":null,"body":"```\r\n -------------------------------------------------------------------------------\r\n --------  Tests with Errors  --------------------------------------------------\r\n   -> unittest2.loader.ModuleImportFailure.unit.modules.tls_test  ..............\r\n       ImportError: Failed to import test module: unit.modules.tls_test\r\n       Traceback (most recent call last):\r\n         File \"/usr/lib/python2.6/site-packages/unittest2/loader.py\", line 260, in _find_tests\r\n           module = self._get_module_from_name(name)\r\n         File \"/usr/lib/python2.6/site-packages/unittest2/loader.py\", line 238, in _get_module_from_name\r\n           __import__(name)\r\n         File \"/builddir/build/BUILD/salt-2015.5.3/salt-2015.5.3/tests/unit/modules/tls_test.py\", line 121, in <module>\r\n           class TLSAddTestCase(TestCase):\r\n         File \"/builddir/build/BUILD/salt-2015.5.3/salt-2015.5.3/tests/unit/modules/tls_test.py\", line 190, in TLSAddTestCase\r\n           @patch('salt.utils.fopen', mock_open(read_data=_TLS_TEST_DATA['ca_cert']))\r\n         File \"/builddir/build/BUILD/salt-2015.5.3/SaltTesting-2015.5.8/salttesting/mock.py\", line 143, in mock_open\r\n           handle.__enter__.return_value = handle\r\n       AttributeError: 'MagicMock' object has no attribute '__enter__'\r\n   .............................................................................\r\n -------------------------------------------------------------------------------\r\n```"}}