Ejemplo n.º 1
0
 def test_verify_path_3(self):
     """Verify a true directory produces no error when
     'directory' is indicated."""
     result = basic.verify_path(str(self.test_directory1), "dir")
     self.assertTrue(result)
Ejemplo n.º 2
0
 def test_verify_path_2(self):
     """Verify a fake file produces an error when 'file' is indicated."""
     result = basic.verify_path(str(self.test_filepath1) + "abcxyz", "file")
     self.assertFalse(result)
Ejemplo n.º 3
0
 def test_verify_path_7(self):
     """Verify a true directory produces an error when
     'invalid' is indicated."""
     result = basic.verify_path(str(self.test_directory1), "invalid")
     self.assertFalse(result)
Ejemplo n.º 4
0
 def test_verify_path_1(self):
     """Verify a true file produces no error when 'file' is indicated."""
     result = basic.verify_path(self.test_filepath1, "file")
     self.assertTrue(result)
Ejemplo n.º 5
0
 def test_verify_path_6(self):
     """Verify a fake directory produces an error when
     'None' is indicated."""
     result = basic.verify_path(str(self.test_directory1) + "abcxyz")
     self.assertFalse(result)