MCPcopy Index your code
hub / github.com/algorithmiaio/algorithmia-python / test_call_binary

Method test_call_binary

Test/regular/algo_test.py:206–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 print(e)
205
206 def test_call_binary(self):
207 result = self.client.algo('quality/echo').pipe(bytearray('foo', 'utf-8'))
208 self.assertEqual('binary', result.metadata.content_type)
209 self.assertEqual(bytearray('foo', 'utf-8'), result.result)
210
211 def test_async_call(self):
212 result = self.client.algo('quality/echo').set_options(output=OutputType.void).pipe("foo")

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.80
algoMethod · 0.80

Tested by

no test coverage detected