Esempio n. 1
0
 def test_verify_path2_9(self):
     """Verify output when file does not exist, is expected to exist,
     and kind = None."""
     result, msg = basic.verify_path2(self.file, kind=None, expect=True)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 2
0
 def test_verify_path2_14(self):
     """Verify output when directory does not exist,
     is expected to exist, and kind = 'dir'."""
     result, msg = basic.verify_path2(self.dir, kind="dir", expect=True)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 3
0
 def test_verify_path2_3(self):
     """Verify output when file does not exist, is not expected to exist,
     and kind = 'file'."""
     result, msg = basic.verify_path2(self.file, kind="file", expect=False)
     with self.subTest():
         self.assertTrue(result)
     with self.subTest():
         self.assertIsNone(msg)
Esempio n. 4
0
 def test_verify_path2_10(self):
     """Verify output when file exists, is expected to exist,
     and kind = 'invalid'."""
     result, msg = basic.verify_path2(self.file, kind="invalid", expect=True)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 5
0
 def test_verify_path2_17(self):
     """Verify output when directory exists, is expected to exist,
     and kind = 'invalid'."""
     self.dir.mkdir()
     result, msg = basic.verify_path2(self.dir, kind="invalid", expect=True)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 6
0
 def test_verify_path2_16(self):
     """Verify output when directory exists, is expected to exist, and
     kind = None."""
     self.dir.mkdir()
     result, msg = basic.verify_path2(self.dir, kind=None, expect=True)
     with self.subTest():
         self.assertTrue(result)
     with self.subTest():
         self.assertIsNone(msg)
Esempio n. 7
0
 def test_verify_path2_7(self):
     """Verify output when file exists, is not expected to exist,
     and kind = None."""
     self.file.touch()
     result, msg = basic.verify_path2(self.file, kind=None, expect=False)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 8
0
 def test_verify_path2_5(self):
     """Verify output when file exists, is expected to exist,
     and kind = 'dir'."""
     self.file.touch()
     result, msg = basic.verify_path2(self.dir, kind="dir", expect=True)
     with self.subTest():
         self.assertFalse(result)
     with self.subTest():
         self.assertIsNotNone(msg)
Esempio n. 9
0
 def test_verify_path2_1(self):
     """Verify output when file exists, is expected to exist,
     and kind = 'file'."""
     self.file.touch()
     result, msg = basic.verify_path2(self.file, kind="file", expect=True)
     with self.subTest():
         self.assertTrue(result)
     with self.subTest():
         self.assertIsNone(msg)