@@ -101,28 +101,28 @@ def test_store_bytes_at_offset(self):
101
101
102
102
@unittest .skip ("TODO: enable again - requires the temporarily disabled auto mode select" )
103
103
def test_store_bytes_in_text_mode (self ):
104
- fileio .write_chunk (self .tmp_path , DUMMY_BYTES , 0 , self .logger ,
105
- mode = "r+" )
104
+ fileio .write_chunk (self .tmp_path , DUMMY_BYTES , 0 , self .logger ,
105
+ mode = "r+" )
106
106
107
- with open (self .tmp_path , 'rb' ) as file :
108
- content = file .read (1024 )
109
- self .assertEqual (len (content ), DUMMY_BYTES_LENGTH )
110
- self .assertEqual (content [:], DUMMY_BYTES )
107
+ with open (self .tmp_path , 'rb' ) as file :
108
+ content = file .read (1024 )
109
+ self .assertEqual (len (content ), DUMMY_BYTES_LENGTH )
110
+ self .assertEqual (content [:], DUMMY_BYTES )
111
111
112
112
@unittest .skip ("TODO: enable again - requires the temporarily disabled auto mode select" )
113
113
def test_store_unicode (self ):
114
- fileio .write_chunk (self .tmp_path , DUMMY_UNICODE , 0 , self .logger ,
115
- mode = 'r+' )
114
+ fileio .write_chunk (self .tmp_path , DUMMY_UNICODE , 0 , self .logger ,
115
+ mode = 'r+' )
116
116
117
- with open (self .tmp_path , 'r' ) as file :
118
- content = file .read (1024 )
119
- self .assertEqual (len (content ), DUMMY_UNICODE_LENGTH )
120
- self .assertEqual (content [:], DUMMY_UNICODE )
117
+ with open (self .tmp_path , 'r' ) as file :
118
+ content = file .read (1024 )
119
+ self .assertEqual (len (content ), DUMMY_UNICODE_LENGTH )
120
+ self .assertEqual (content [:], DUMMY_UNICODE )
121
121
122
122
@unittest .skip ("TODO: enable again - requires the temporarily disabled auto mode select" )
123
123
def test_store_unicode_in_binary_mode (self ):
124
- fileio .write_chunk (self .tmp_path , DUMMY_UNICODE , 0 , self .logger ,
125
- mode = 'r+b' )
124
+ fileio .write_chunk (self .tmp_path , DUMMY_UNICODE , 0 , self .logger ,
125
+ mode = 'r+b' )
126
126
127
127
with open (self .tmp_path , 'r' ) as file :
128
128
content = file .read (1024 )
0 commit comments