def test_is_file_readble_for_permission(self):
     mapzen_settings = MapZenSettings(self.test_settings_file)
     # simluate file permission status and set to False
     p = patch("os.access", new = MagicMock(return_value=False))
     p.start()
     assert mapzen_settings.is_file_readable(self.test_settings_file) is not True
     p.stop()
 def test_get_settings(self):
     mapzen_settings = MapZenSettings(self.test_settings_file)
     assert mapzen_settings.settings == mapzen_settings.get_settings()
 def test_is_file_readble_for_readable_file(self):
     mapzen_settings = MapZenSettings(self.test_settings_file)
     assert mapzen_settings.is_file_readable(self.test_settings_file) is True
 def test_is_file_readable_for_non_file(self):
     mapzen_settings = MapZenSettings(self.test_settings_file)
     assert mapzen_settings.is_file_readable(self.non_file_path) is not True