This repository was archived by the owner on Mar 13, 2022. It is now read-only.
File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ def _raise_exception(st):
65
65
TEST_DATA = "test-data"
66
66
TEST_DATA_BASE64 = _base64 (TEST_DATA )
67
67
68
- TEST_DATA_BYTES = b"test-data"
69
- TEST_DATA_BASE64_BYTES = b"dGVzdC1kYXRh"
70
-
71
68
TEST_ANOTHER_DATA = "another-test-data"
72
69
TEST_ANOTHER_DATA_BASE64 = _base64 (TEST_ANOTHER_DATA )
73
70
@@ -205,13 +202,13 @@ def test_create_temp_file_with_content(self):
205
202
_cleanup_temp_files ()
206
203
207
204
def test_file_given_data_bytes (self ):
208
- obj = {TEST_DATA_KEY : TEST_DATA_BASE64_BYTES }
205
+ obj = {TEST_DATA_KEY : TEST_DATA_BASE64 . encode () }
209
206
t = FileOrData (obj = obj , file_key_name = TEST_FILE_KEY ,
210
207
data_key_name = TEST_DATA_KEY )
211
208
self .assertEqual (TEST_DATA , self .get_file_content (t .as_file ()))
212
209
213
210
def test_file_given_data_bytes_no_base64 (self ):
214
- obj = {TEST_DATA_KEY : TEST_DATA_BYTES }
211
+ obj = {TEST_DATA_KEY : TEST_DATA . encode () }
215
212
t = FileOrData (obj = obj , file_key_name = TEST_FILE_KEY ,
216
213
data_key_name = TEST_DATA_KEY , base64_file_content = False )
217
214
self .assertEqual (TEST_DATA , self .get_file_content (t .as_file ()))
You can’t perform that action at this time.
0 commit comments