Пример #1
0
 def test_bad(self):
     """Test bad paths trigger IO exceptions with overloads"""
     self.assertRaises(IOError, IMP._test_ifile_overloaded, "bad path", "hi")
     s= StringIO()
     # shouldn't raise
     IMP._test_ifile_overloaded(s, "hi")