Ejemplo n.º 1
0
 def test_get_changed_files_gets_correct_output(self):
     commands.getoutput("mkdir testdir1234")
     commands.getoutput("touch testdir1234/testfile1234")
     outcome = get_changed_files('testdir1234', 1)
     self.assert_equal(1, len(outcome))
     self.assert_equal(['testdir1234/testfile1234'], outcome)
     commands.getoutput("rm testdir1234/testfile1234")
     commands.getoutput("rmdir testdir1234")
Ejemplo n.º 2
0
 def test_get_changed_files(self):
     outcome = get_changed_files('.',0)
     self.assert_equal([], outcome)