##// END OF EJS Templates
another shot at bin-tests on python3
Manuel Riel -
Show More
@@ -9,6 +9,7 b' pjoin = os.path.join'
9
9
10 import requests
10 import requests
11 import json
11 import json
12 import binascii
12
13
13 from IPython.nbformat.current import (new_notebook, write, new_worksheet,
14 from IPython.nbformat.current import (new_notebook, write, new_worksheet,
14 new_heading_cell, new_code_cell,
15 new_heading_cell, new_code_cell,
@@ -92,7 +93,7 b' class FilesTest(NotebookTestBase):'
92 self.assertEqual(r.status_code, 200)
93 self.assertEqual(r.status_code, 200)
93 self.assertEqual(r.headers['content-type'], 'application/octet-stream')
94 self.assertEqual(r.headers['content-type'], 'application/octet-stream')
94
95
95 self.assertEqual("{:02x}".format(ord(r.content[0])), 'ff')
96 self.assertEqual(binascii.hexlify(r.content[0]), 'ff')
96 self.assertEqual(len(r.content), 6)
97 self.assertEqual(len(r.content), 6)
97
98
98 r = requests.get(url_path_join(base, 'files', 'test.txt'))
99 r = requests.get(url_path_join(base, 'files', 'test.txt'))
General Comments 0
You need to be logged in to leave comments. Login now