def test_git_clean_false(self): marker = "%s/REMOVE_THIS_FILE" % dummypath subprocess.call(["touch", marker]) self.assertFalse(bt.is_git_clean(dummypath)) subprocess.call(["rm", marker])
def test_git_clean_true(self): self.assertTrue(bt.is_git_clean(dummypath), bt.git_status(dummypath))