Ejemplo n.º 1
0
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"]
Ejemplo n.º 2
0
def get_patchset():
    """
    Creates a sample patchset for the test harness
    """
    return process_patchset(SAMPLETEXT)
Ejemplo n.º 3
0
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"]