def METHOD_NAME(patternA, path, expectedPattern):
    patternB = patternFromPath(path)
    orgPattern = deepcopy(patternA)
    newPattern = patternDifference(patternA, patternB)
    assert orgPattern == patternA
    assert expectedPattern == newPattern