Ejemplo n.º 1
0
def test_post_calls_fetch():
    data = {'a': 1}
    with mock.patch.object(CatmaidClient, 'fetch') as fetch:
        c = CatmaidClient(BASE_URL)
        c.post('relative', data=data)

    fetch.assert_called_with('relative', method='POST', data=data, raw=False)
Ejemplo n.º 2
0
def test_post_calls_fetch():
    data = {"a": 1}
    with mock.patch.object(CatmaidClient, "fetch") as fetch:
        c = CatmaidClient(BASE_URL)
        c.post("relative", data=data)

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