示例#1
0
 def test_file_data(self, data, tmpdir):
     txt_file = tmpdir.join("temporary.txt")
     txt_file.write("\n".join(data))
     assert read_plain_text(txt_file.strpath) == data
示例#2
0
 def test_file_data(self, data, tmpdir):
     txt_file = tmpdir.join("temporary.txt")
     txt_file.write("\n".join(data))
     assert read_plain_text(txt_file.strpath) == data
示例#3
0
 def test_file_not_found(self):
     with pytest.raises(IOError):
         read_plain_text("/this __ / file / doesnt/exist")
示例#4
0
 def test_file_not_found(self):
     with pytest.raises(IOError):
         read_plain_text("/this __ / file / doesnt/exist")