예제 #1
0
def test_oserror(tmpdir):
    dataset = SupremeCourt(data_dir=str(tmpdir))
    with pytest.raises(OSError):
        _ = list(dataset.texts())
 def test_ioerror(self):
     dataset = SupremeCourt(data_dir=self.tempdir)
     with self.assertRaises(IOError):
         _ = list(dataset.texts())