MCPcopy Index your code
hub / github.com/offu/WeRoBot / test_to_binary

Function test_to_binary

tests/test_utils.py:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_to_binary():
24 assert to_binary(6) == bytes(6)
25 assert to_binary(b"aa") == b"aa"
26 assert to_binary("cc") == b"cc"
27 assert to_binary(u"喵") == b"\xe5\x96\xb5"
28 assert to_binary("喵") == b"\xe5\x96\xb5"
29
30
31def test_pay_sign_dict():

Callers

nothing calls this directly

Calls 1

to_binaryFunction · 0.90

Tested by

no test coverage detected