def test_add(self): client = HyperdriveClient() with mock.patch.object(HyperdriveClient, '_request', return_value=self.response): assert client.add(self.response['files']) == self.response['hash']
def test_add(self, _): client = HyperdriveClient() assert client.add(response['files']) == response['hash']