Exemplo n.º 1
0
    def test_send_with_use_ssl(self, requests):
        requests.get = Mock(return_value=self.get_mock_response({}))
        client = SkyClient(use_ssl=True)
        client.send('get', '/path')

        requests.get.assert_called_once_with(
            'https://127.0.0.1:8585/path',
            headers={'content-type': 'application/json'},
            data=None,
            verify=False
        )