Fileserver transfers bytes

This commit is contained in:
Daniel A. Wozniak 2018-07-23 13:24:47 -07:00
parent aa34a80997
commit 95329acb1e
No known key found for this signature in database
GPG key ID: 166B9D2C06C82D61

View file

@ -108,34 +108,34 @@ class RootsTest(TestCase, AdaptedConfigurationTestCaseMixin, LoaderModuleMockMix
'rel': 'testfile'}
ret = roots.serve_file(load, fnd)
data = 'Scene 24\n\n \n OLD MAN: Ah, hee he he ha!\n ' \
'ARTHUR: And this enchanter of whom you speak, he ' \
'has seen the grail?\n OLD MAN: Ha ha he he he ' \
'he!\n ARTHUR: Where does he live? Old man, where ' \
'does he live?\n OLD MAN: He knows of a cave, a ' \
'cave which no man has entered.\n ARTHUR: And the ' \
'Grail... The Grail is there?\n OLD MAN: Very much ' \
'danger, for beyond the cave lies the Gorge\n ' \
'of Eternal Peril, which no man has ever crossed.\n ' \
'ARTHUR: But the Grail! Where is the Grail!?\n ' \
'OLD MAN: Seek you the Bridge of Death.\n ARTHUR: ' \
'The Bridge of Death, which leads to the Grail?\n ' \
'OLD MAN: Hee hee ha ha!\n\n'
data = b'Scene 24\n\n \n OLD MAN: Ah, hee he he ha!\n ' \
b'ARTHUR: And this enchanter of whom you speak, he ' \
b'has seen the grail?\n OLD MAN: Ha ha he he he ' \
b'he!\n ARTHUR: Where does he live? Old man, where ' \
b'does he live?\n OLD MAN: He knows of a cave, a ' \
b'cave which no man has entered.\n ARTHUR: And the ' \
b'Grail... The Grail is there?\n OLD MAN: Very much ' \
b'danger, for beyond the cave lies the Gorge\n ' \
b'of Eternal Peril, which no man has ever crossed.\n ' \
b'ARTHUR: But the Grail! Where is the Grail!?\n ' \
b'OLD MAN: Seek you the Bridge of Death.\n ARTHUR: ' \
b'The Bridge of Death, which leads to the Grail?\n ' \
b'OLD MAN: Hee hee ha ha!\n\n'
if salt.utils.platform.is_windows():
data = 'Scene 24\r\n\r\n \r\n OLD MAN: Ah, hee he he ' \
'ha!\r\n ARTHUR: And this enchanter of whom you ' \
'speak, he has seen the grail?\r\n OLD MAN: Ha ha ' \
'he he he he!\r\n ARTHUR: Where does he live? Old ' \
'man, where does he live?\r\n OLD MAN: He knows of ' \
'a cave, a cave which no man has entered.\r\n ' \
'ARTHUR: And the Grail... The Grail is there?\r\n ' \
'OLD MAN: Very much danger, for beyond the cave lies ' \
'the Gorge\r\n of Eternal Peril, which no man ' \
'has ever crossed.\r\n ARTHUR: But the Grail! ' \
'Where is the Grail!?\r\n OLD MAN: Seek you the ' \
'Bridge of Death.\r\n ARTHUR: The Bridge of Death, ' \
'which leads to the Grail?\r\n OLD MAN: Hee hee ha ' \
'ha!\r\n\r\n'
data = b'Scene 24\r\n\r\n \r\n OLD MAN: Ah, hee he he ' \
b'ha!\r\n ARTHUR: And this enchanter of whom you ' \
b'speak, he has seen the grail?\r\n OLD MAN: Ha ha ' \
b'he he he he!\r\n ARTHUR: Where does he live? Old ' \
b'man, where does he live?\r\n OLD MAN: He knows of ' \
b'a cave, a cave which no man has entered.\r\n ' \
b'ARTHUR: And the Grail... The Grail is there?\r\n ' \
b'OLD MAN: Very much danger, for beyond the cave lies ' \
b'the Gorge\r\n of Eternal Peril, which no man ' \
b'has ever crossed.\r\n ARTHUR: But the Grail! ' \
b'Where is the Grail!?\r\n OLD MAN: Seek you the ' \
b'Bridge of Death.\r\n ARTHUR: The Bridge of Death, ' \
b'which leads to the Grail?\r\n OLD MAN: Hee hee ha ' \
b'ha!\r\n\r\n'
self.assertDictEqual(
ret,