# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


from .base import BaseOperator, Operator
    Asserts HTTP request method.

    Example::

        # Should style
        res | should.be.method('GET')

        # Should style - negation form
        res | should.not_be.method('GET')

        # Expect style
        res | expect.to.be.method('GET')

        # Expect style - negation form
        res | expect.to_not.be.method('GET')
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('method', 'verb')

    # Operator aliases
    aliases = ('name', 'equal', 'to', 'be', 'of')

    # Show match diff on error
    show_diff = True

    # Error message templates

# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


# Path: grappa_http/operators/method.py
from .base import BaseOperator, Operator

    Asserts HTTP request method.

    Example::

        # Should style
        res | should.be.method('GET')

        # Should style - negation form
        res | should.not_be.method('GET')

        # Expect style
        res | expect.to.be.method('GET')

        # Expect style - negation form
        res | expect.to_not.be.method('GET')
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('method', 'verb')

    # Operator aliases
    aliases = ('name', 'equal', 'to', 'be', 'of')

    # Show match diff on error
    show_diff = True

    # Error message templates

    expected_message = Operator.Dsl.Message(