Beispiel #1
0
 def test_file_does_exist(self):
     p_file_expanded = IO.expand_filename(self.p_file_extended)
     self.assertEqual(self.p_file_extended, p_file_expanded)
Beispiel #2
0
 def test_file_does_not_exist(self):
     with self.assertRaises(IOError) as context:
         IO.expand_filename('xx')
     self.assertTrue(context.exception.errno == 11 or
                     context.exception.errno == 12)