Exemplo n.º 1
0
def test_get_calls_fetch():
    params = {'a': 1}
    with mock.patch.object(CatmaidClient, 'fetch') as fetch:
        c = CatmaidClient(BASE_URL)
        c.get('relative', params=params)

    fetch.assert_called_with('relative', method='GET', data=params, raw=False)
Exemplo n.º 2
0
def test_get_calls_fetch():
    params = {"a": 1}
    with mock.patch.object(CatmaidClient, "fetch") as fetch:
        c = CatmaidClient(BASE_URL)
        c.get("relative", params=params)

    fetch.assert_called_with("relative", method="GET", data=params, raw=False)