Ejemplo n.º 1
0
 def test_run_if_changes_runs_command_with_list(self):
     empty_list = [1,]
     command_to_run = "ls"
     expected = commands.getoutput(command_to_run)
     outcome = run_if_changes(empty_list, command_to_run)
     self.assert_equal(expected, outcome)        
Ejemplo n.º 2
0
 def test_run_if_changes_does_nothing_with_blank_list(self):
     empty_list = []
     outcome = run_if_changes(empty_list, "ls")
     self.assert_equal(False, outcome)