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