# Path: aiosmtplib/response.py
# class SMTPResponse(BaseResponse):
#     """
#     NamedTuple of server response code and server response message.
# 
#     ``code`` and ``message`` can be accessed via attributes or indexes:
# 
#         >>> response = SMTPResponse(200, "OK")
#         >>> response.message
#         'OK'
#         >>> response[0]
#         200
#         >>> response.code
#         200
# 
#     """
# 
#     __slots__ = ()
# 
#     def __repr__(self) -> str:
#         return "({self.code}, {self.message})".format(self=self)
# 
#     def __str__(self) -> str:
#         return "{self.code} {self.message}".format(self=self)


from hypothesis import given
from hypothesis.strategies import integers, text
from aiosmtplib.response import SMTPResponse



@given(integers(), text())
def test_response_repr(code, message):
    response = SMTPResponse(code, message)
    assert repr(response) == "({}, {})".format(response.code, response.message)


@given(integers(), text())
def test_response_str(code, message):

# Path: aiosmtplib/response.py
# class SMTPResponse(BaseResponse):
#     """
#     NamedTuple of server response code and server response message.
# 
#     ``code`` and ``message`` can be accessed via attributes or indexes:
# 
#         >>> response = SMTPResponse(200, "OK")
#         >>> response.message
#         'OK'
#         >>> response[0]
#         200
#         >>> response.code
#         200
# 
#     """
# 
#     __slots__ = ()
# 
#     def __repr__(self) -> str:
#         return "({self.code}, {self.message})".format(self=self)
# 
#     def __str__(self) -> str:
#         return "{self.code} {self.message}".format(self=self)


# Path: tests/test_response.py
from hypothesis import given
from hypothesis.strategies import integers, text
from aiosmtplib.response import SMTPResponse




@given(integers(), text())
def test_response_repr(code, message):
    response = SMTPResponse(code, message)
    assert repr(response) == "({}, {})".format(response.code, response.message)


@given(integers(), text())
def test_response_str(code, message):

    response = SMTPResponse(code, message)