def METHOD_NAME(monkeypatch):
    monkeypatch.setattr('processor.comparison.interpreter.get_documents',
                        mock_get_documents)
    monkeypatch.setattr('processor.comparison.comparisonantlr.rule_interpreter.get_documents', mock_get_documents)
    from processor.comparison.interpreter import Comparator
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
                    "testId": "1",
                    "snapshotId": "1",
                    "attribute": "location",
                    "comparison":"exist"
                }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "3",
        "snapshotId": "1",
        "attribute": "location.name",
        "comparison": "not exist"
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": "gt 10"
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "1",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": '"eastus2"'
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "1",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": 'len(eastus2)'
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "1",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": "'eastus2'"
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": "gt a"
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": "gt len(7)"
    }, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId": "1",
        "attribute": "location",
        "comparison": "eq '{2}.location'"
    }, {}, {})
    comparator = Comparator('0.2', 'mycontainer1', 'validator', {}, {
        "testId": "3",
        "snapshotId": "1",
        "attribute": "location.name",
        "comparison": "not exist"
    }, {}, {})
    comparator.validate()
    comparator = Comparator('0.3', 'mycontainer1', 'validator', {}, {
        "testId": "3",
        "snapshotId": "1",
        "attribute": "location.name",
        "comparison": "not exist"
    }, {}, {})
    comparator.validate()
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "1",
        "rule": "exist({1}.location)"
    }, {}, {})
    comparator.validate()
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {}, {}, {})
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId": "1",
        "attribute": "id",
        "comparison": "gt 10"
    }, {}, {})
    val = comparator.validate()
    assert 'passed' == val[0]['result']
    comparator = Comparator('0.1', 'mycontainer1', 'validator', {}, {
        "testId": "4",
        "snapshotId1": "1",
        "attribute": "id",
        "comparison": "gt 10"
    }, {}, {})
    val = comparator.validate()
    # print(type(comparator))