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)
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)
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)
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)
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)