def test_good_dir(self): os.makedirs('test_dir') self.assertTrue(cli.validate_path('test_dir')) os.rmdir('test_dir')
def test_good_file(self): write_tmp_file("test_file","") self.assertTrue(cli.validate_path('test_file')) os.remove("test_file")
def test_bad_dir(self): self.assertFalse(cli.validate_path('/dirthatdoesntexist/'))
def test_bad_file(self): self.assertFalse(cli.validate_path('/filethatdoesntexist'))