import pytest
from pook.mock import Mock


@pytest.fixture
def mock():
    return Mock()


def matcher(mock):
    return mock.matchers[0]


def test_mock_url(mock):
    mock.url("http://google.es")
    assert str(matcher(mock)) == "http://google.es"


def test_new_response(mock):
    assert mock.reply() != mock.reply(new_response=True, json={})
