mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fileserver transfers bytes
This commit is contained in:
parent
aa34a80997
commit
95329acb1e
1 changed files with 27 additions and 27 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue