コード例 #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
ファイル: test_misc.py プロジェクト: danilobellini/dose
 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
ファイル: test_misc.py プロジェクト: danilobellini/dose
 def test_file_not_found(self):
     with pytest.raises(IOError):
         read_plain_text("/this __ / file / doesnt/exist")