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