def get_filedelta(): """ Simple helper function that produces a new file delta from the default patch above """ patchset = process_patchset(SAMPLETEXT) return patchset.deltas["main.html"]
def get_patchset(): """ Creates a sample patchset for the test harness """ return process_patchset(SAMPLETEXT)
def get_multi_filedelta(): """ Just like get_filedelta, except it loads a patch that hits multiple locations """ patchset = process_patchset(MULTILOCATION_PATCH) return patchset.deltas["main.html"]