Home
last modified time | relevance | path

Searched refs:BytesIO (Results 1 – 25 of 4298) sorted by relevance

12345678910>>...172

/dports/devel/py-thriftpy2/thriftpy2-0.4.14/tests/
H A Dtest_protocol_binary.py3 from io import BytesIO
20 b = BytesIO()
26 b = BytesIO(b"{")
31 b = BytesIO()
42 b = BytesIO()
53 b = BytesIO()
64 b = BytesIO()
75 b = BytesIO()
80 b = BytesIO()
100 b = BytesIO()
[all …]
/dports/www/py-enmerkar/enmerkar-0.7.1/tests/
H A Dtest_extract.py7 from babel._compat import BytesIO
20 buf = BytesIO(b'nothing')
68 buf = BytesIO(test_tmpl)
90 buf = BytesIO(
103 buf = BytesIO(test_tmpl)
115 buf = BytesIO(test_tmpl)
127 buf = BytesIO(test_tmpl)
174 buf = BytesIO(test_tmpl)
185 buf = BytesIO(test_tmpl)
197 buf = BytesIO(test_tmpl)
[all …]
/dports/www/py-django-babel/django-babel-0.6.2/tests/
H A Dtest_extract.py7 from babel._compat import BytesIO
20 buf = BytesIO(b'nothing')
68 buf = BytesIO(test_tmpl)
90 buf = BytesIO(
103 buf = BytesIO(test_tmpl)
115 buf = BytesIO(test_tmpl)
127 buf = BytesIO(test_tmpl)
174 buf = BytesIO(test_tmpl)
185 buf = BytesIO(test_tmpl)
197 buf = BytesIO(test_tmpl)
[all …]
/dports/devel/py-babel/Babel-2.9.1/tests/messages/
H A Dtest_extract.py25 buf = BytesIO(b"""\
69 buf = BytesIO(b"""\
80 buf = BytesIO(b"""\
119 buf = BytesIO(b"""\
138 buf = BytesIO(b"""\
151 buf = BytesIO(b"""\
217 buf = BytesIO(b"""
226 buf = BytesIO(b"""
237 buf = BytesIO(b"""
250 buf = BytesIO(b"""
[all …]
H A Dtest_js_extract.py3 from babel._compat import BytesIO
8 buf = BytesIO(b"""\
23 buf = BytesIO(b"""\
46 buf = BytesIO(u"""\
56 buf = BytesIO(u"""\
68 buf = BytesIO(b"""\
78 buf = BytesIO(b"""\
121 buf = BytesIO(JSX_SOURCE)
130 buf = BytesIO(b"msg1 = com.corporate.i18n.formatMessage('Insert coin to continue')")
139 buf = BytesIO(b"msg1 = gettext(`Very template, wow`)")
[all …]
/dports/science/py-obspy/obspy-1.2.2/obspy/io/xseed/tests/
H A Dtest_fields.py26 dt = field.read(io.BytesIO(orig))
31 dt = field.read(io.BytesIO(orig))
36 dt = field.read(io.BytesIO(orig))
41 dt = field.read(io.BytesIO(orig))
46 dt = field.read(io.BytesIO(orig))
51 dt = field.read(io.BytesIO(orig))
56 dt = field.read(io.BytesIO(orig))
61 dt = field.read(io.BytesIO(orig))
66 dt = field.read(io.BytesIO(orig))
71 dt = field.read(io.BytesIO(orig))
[all …]
/dports/devel/py-pystorm/pystorm-3.1.4/test/pystorm/
H A Dtest_component.py10 from io import BytesIO
75 output_stream=BytesIO())
87 component = Component(input_stream=BytesIO(),
88 output_stream=BytesIO())
111 output_stream=BytesIO())
135 output_stream=BytesIO())
156 output_stream=BytesIO())
172 output_stream=BytesIO())
208 component = Component(input_stream=BytesIO(), output_stream=BytesIO())
225 component = Component(input_stream=BytesIO(), output_stream=BytesIO())
[all …]
/dports/textproc/translate-toolkit/translate-toolkit-3.5.1/translate/convert/
H A Dtest_po2oo.py3 from io import BytesIO
20 inputfile = BytesIO(posource.encode())
21 outputfile = BytesIO()
34 ooinputfile = BytesIO(oosource.encode())
36 pooutputfile = BytesIO()
39 poinputfile = BytesIO(posource)
41 oooutputfile = BytesIO()
126 outputfile = BytesIO()
144 outputfile = BytesIO()
169 outputfile = BytesIO()
[all …]
/dports/net/py-python-heatclient/python-heatclient-2.4.0/heatclient/tests/unit/
H A Dtest_template_utils.py40 return six.BytesIO(content)
60 mock_url.return_value = six.BytesIO(env)
78 mock_url.side_effect = [six.BytesIO(env), six.BytesIO(self.template_a),
105 mock_url.side_effect = [six.BytesIO(env), six.BytesIO(self.template_a),
151 mock_url.side_effect = [six.BytesIO(env), six.BytesIO(self.template_a),
185 mock_url.side_effect = [six.BytesIO(env), six.BytesIO(self.template_a),
205 mock_url.return_value = six.BytesIO(env)
238 mock_url.side_effect = [six.BytesIO(env1),
241 six.BytesIO(env2),
731 response = six.BytesIO(raw_content)
[all …]
/dports/print/py-fonttools/fonttools-4.28.2/Tests/misc/
H A DxmlWriter_test.py1 from io import BytesIO
12 writer = XMLWriter(BytesIO())
17 writer = XMLWriter(BytesIO())
23 writer = XMLWriter(BytesIO())
50 writer = XMLWriter(BytesIO())
55 writer = XMLWriter(BytesIO())
67 writer = XMLWriter(BytesIO())
72 writer = XMLWriter(BytesIO())
77 writer = XMLWriter(BytesIO())
84 writer = XMLWriter(BytesIO())
[all …]
/dports/archivers/py-bup/bup-0.31/lib/bup/t/
H A Dtvint.py3 from io import BytesIO
12 f = BytesIO()
14 return vint.read_vuint(BytesIO(f.getvalue()))
23 WVEXCEPT(EOFError, vint.read_vuint, BytesIO())
27 f = BytesIO()
29 return vint.read_vint(BytesIO(f.getvalue()))
40 WVEXCEPT(EOFError, vint.read_vint, BytesIO())
45 f = BytesIO()
47 return vint.read_bvec(BytesIO(f.getvalue()))
57 outf = BytesIO()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/ijson/
H A Dtests.py4 from io import BytesIO, StringIO
127 events = list(self.backend.basic_parse(BytesIO(JSON)))
162 list(self.backend.basic_parse(BytesIO(json)))
167 list(self.backend.basic_parse(BytesIO(json)))
178 self.backend.basic_parse(BytesIO(INVALID_JSONS[0]))
193 self.assertTrue(list(self.backend.parse(BytesIO(JSON))))
218 for event, value in basic_parse(BytesIO(JSON)):
246 for event, value in basic_parse(BytesIO(SCALAR_JSON)):
251 events = common.parse(basic_parse(BytesIO(JSON)))
259 events = basic_parse(BytesIO(JSON))
[all …]
/dports/print/py-fonttools3/fonttools-3.44.0/Tests/misc/
H A DxmlWriter_test.py13 writer = XMLWriter(BytesIO())
18 writer = XMLWriter(BytesIO())
24 writer = XMLWriter(BytesIO())
51 writer = XMLWriter(BytesIO())
56 writer = XMLWriter(BytesIO())
68 writer = XMLWriter(BytesIO())
73 writer = XMLWriter(BytesIO())
78 writer = XMLWriter(BytesIO())
85 writer = XMLWriter(BytesIO())
95 writer = XMLWriter(BytesIO())
[all …]
/dports/lang/python39/Python-3.9.9/Lib/test/
H A Dtest_lzma.py1011 with BytesIO() as dst:
1016 with BytesIO() as dst:
1021 with BytesIO() as dst:
1026 with BytesIO() as dst:
1035 with BytesIO() as dst:
1047 with BytesIO() as dst:
1111 with BytesIO() as dst:
1245 with BytesIO() as bio:
1260 with BytesIO() as bio:
1313 with BytesIO() as bio:
[all …]
/dports/lang/python310/Python-3.10.1/Lib/test/
H A Dtest_lzma.py1013 with BytesIO() as dst:
1018 with BytesIO() as dst:
1023 with BytesIO() as dst:
1028 with BytesIO() as dst:
1037 with BytesIO() as dst:
1049 with BytesIO() as dst:
1113 with BytesIO() as dst:
1247 with BytesIO() as bio:
1262 with BytesIO() as bio:
1315 with BytesIO() as bio:
[all …]
/dports/lang/python311/Python-3.11.0a3/Lib/test/
H A Dtest_lzma.py1013 with BytesIO() as dst:
1018 with BytesIO() as dst:
1023 with BytesIO() as dst:
1028 with BytesIO() as dst:
1037 with BytesIO() as dst:
1049 with BytesIO() as dst:
1113 with BytesIO() as dst:
1247 with BytesIO() as bio:
1262 with BytesIO() as bio:
1315 with BytesIO() as bio:
[all …]
/dports/databases/py-sqlite3/Python-3.8.12/Lib/test/
H A Dtest_lzma.py1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1110 with BytesIO() as dst:
1236 with BytesIO() as bio:
1251 with BytesIO() as bio:
1304 with BytesIO() as bio:
[all …]
/dports/databases/py-gdbm/Python-3.8.12/Lib/test/
H A Dtest_lzma.py1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1110 with BytesIO() as dst:
1236 with BytesIO() as bio:
1251 with BytesIO() as bio:
1304 with BytesIO() as bio:
[all …]
/dports/lang/python37/Python-3.7.12/Lib/test/
H A Dtest_lzma.py1008 with BytesIO() as dst:
1013 with BytesIO() as dst:
1018 with BytesIO() as dst:
1023 with BytesIO() as dst:
1032 with BytesIO() as dst:
1044 with BytesIO() as dst:
1108 with BytesIO() as dst:
1234 with BytesIO() as bio:
1249 with BytesIO() as bio:
1302 with BytesIO() as bio:
[all …]
/dports/lang/python-tools/Python-3.8.12/Lib/test/
H A Dtest_lzma.py1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1110 with BytesIO() as dst:
1236 with BytesIO() as bio:
1251 with BytesIO() as bio:
1304 with BytesIO() as bio:
[all …]
/dports/lang/python38/Python-3.8.12/Lib/test/
H A Dtest_lzma.py1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1110 with BytesIO() as dst:
1236 with BytesIO() as bio:
1251 with BytesIO() as bio:
1304 with BytesIO() as bio:
[all …]
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Lib/test/
H A Dtest_lzma.py1010 with BytesIO() as dst:
1015 with BytesIO() as dst:
1020 with BytesIO() as dst:
1025 with BytesIO() as dst:
1034 with BytesIO() as dst:
1046 with BytesIO() as dst:
1110 with BytesIO() as dst:
1236 with BytesIO() as bio:
1251 with BytesIO() as bio:
1304 with BytesIO() as bio:
[all …]
/dports/science/py-pydicom/pydicom-2.2.2/pydicom/tests/
H A Dtest_rawread.py4 from io import BytesIO
22 infile = BytesIO(hex2bytes(bytes_input))
55 infile = BytesIO(hex2bytes(hexstr))
107 infile = BytesIO(hex2bytes(hexstr))
150 infile = BytesIO(hex2bytes(hexstr))
194 infile = BytesIO(hex2bytes(hexstr))
233 infile = BytesIO(hex2bytes(hexstr))
272 infile = BytesIO(hex2bytes(hexstr))
302 infile = BytesIO(hex2bytes(hexstr))
328 infile = BytesIO(hex2bytes(hexstr))
[all …]
/dports/net-p2p/c-lightning/lightning-0.10.2/contrib/pyln-proto/tests/
H A Dtest_message.py55 buf = io.BytesIO()
58 assert Message.read(ns, io.BytesIO(test[1])).to_str() == test[0]
83 buf = io.BytesIO()
86 assert Message.read(ns, io.BytesIO(test[1])).to_str() == test[0]
110 buf = io.BytesIO()
140 buf = io.BytesIO()
147 buf = io.BytesIO()
178 msg = Message.read(ns, io.BytesIO(binmsg))
179 buf = io.BytesIO()
196 buf = io.BytesIO()
[all …]
/dports/archivers/py-borgbackup/borgbackup-1.1.17/src/borg/testsuite/
H A Dchunker.py1 from io import BytesIO
15 parts = [bytes(c) for c in Chunker(0, 1, CHUNK_MAX_EXP, 2, 2).chunkify(BytesIO(data))]
18 …self.assert_equal([bytes(c) for c in Chunker(0, 1, CHUNK_MAX_EXP, 2, 2).chunkify(BytesIO(b''))], […
19 …self.assert_equal([bytes(c) for c in Chunker(0, 1, CHUNK_MAX_EXP, 2, 2).chunkify(BytesIO(b'foobarb…
21 …self.assert_equal([bytes(c) for c in Chunker(2, 1, CHUNK_MAX_EXP, 2, 2).chunkify(BytesIO(b'foobarb…
22 …self.assert_equal([bytes(c) for c in Chunker(0, 2, CHUNK_MAX_EXP, 2, 3).chunkify(BytesIO(b'foobarb…
23 …self.assert_equal([bytes(c) for c in Chunker(1, 2, CHUNK_MAX_EXP, 2, 3).chunkify(BytesIO(b'foobarb…
24 …self.assert_equal([bytes(c) for c in Chunker(2, 2, CHUNK_MAX_EXP, 2, 3).chunkify(BytesIO(b'foobarb…
25 …self.assert_equal([bytes(c) for c in Chunker(0, 3, CHUNK_MAX_EXP, 2, 3).chunkify(BytesIO(b'foobarb…
26 …self.assert_equal([bytes(c) for c in Chunker(1, 3, CHUNK_MAX_EXP, 2, 3).chunkify(BytesIO(b'foobarb…
[all …]

12345678910>>...172