Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 3
0
 def test_file_not_found(self):
     with pytest.raises(IOError):
         read_plain_text("/this __ / file / doesnt/exist")
Exemplo n.º 4
0
 def test_file_not_found(self):
     with pytest.raises(IOError):
         read_plain_text("/this __ / file / doesnt/exist")