MCPcopy Create free account
hub / github.com/algorithmiaio/algorithmia-python / test_text_unicode

Method test_text_unicode

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

Source from the content-addressed store, hash-verified

61 self.assertEqual('0.1.0', result['results'][0]['version_info']['semantic_version'])
62
63 def test_text_unicode(self):
64 telephone = u"\u260E"
65 # Unicode input to pipe()
66 result1 = self.client.algo('quality/echo').pipe(telephone)
67 self.assertEqual('text', result1.metadata.content_type)
68 self.assertEqual(telephone, result1.result)
69
70 # Unicode return in .result
71 result2 = self.client.algo('quality/echo').pipe(result1.result)
72 self.assertEqual('text', result2.metadata.content_type)
73 self.assertEqual(telephone, result2.result)
74
75 def test_algo_info(self):
76 result = self.client.algo('quality/echo').info()

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.80
algoMethod · 0.80

Tested by

no test coverage detected