示例#1
0
 def test_good_dir(self):
     os.makedirs('test_dir')
     self.assertTrue(cli.validate_path('test_dir'))
     os.rmdir('test_dir')
示例#2
0
 def test_good_file(self):
     write_tmp_file("test_file","")
     self.assertTrue(cli.validate_path('test_file'))
     os.remove("test_file")
示例#3
0
 def test_bad_dir(self):
     self.assertFalse(cli.validate_path('/dirthatdoesntexist/'))
示例#4
0
 def test_bad_file(self):
     self.assertFalse(cli.validate_path('/filethatdoesntexist'))