def test_load_py_file_with_syntax_error(self):
        with file('/tmp/settings_with_syntax_error.py', 'w') as temp_settings:
            temp_settings.write('(')

        self.assertRaises(InaccessibleSettings,
                          _load_py_file, 'settings_with_syntax_error', '/tmp')