def test_https(self):
     result = verify.path_exists('https://example.com')
     self.assertIs(result, True)
     self.assertFalse(self.mock_isfile.called)
 def test_file_does_not_exist(self):
     self.mock_isfile.return_value = False
     result = verify.path_exists('./pacts/consumer-provider.json')
     self.assertIs(result, False)
     self.mock_isfile.assert_called_once_with(
         './pacts/consumer-provider.json')
 def test_http(self):
     result = verify.path_exists('http://localhost')
     self.assertIs(result, True)
     self.assertFalse(self.mock_isfile.called)