示例#1
0
 def test_nok(self):
     foldername = os.path.join(self.folder, "not_found")
     with self.assertRaisesRegex(argparse.ArgumentTypeError, "does not exist"):
         is_valid_folder(foldername)
示例#2
0
 def test_ok(self):
     self.assertEqual(self.folder, is_valid_folder(self.folder))