from __future__ import absolute_import

from utils import check_on_input


NEXT_METHOD = ("""
spam.next()
""",
"""
next(spam)
""")

NEXT_NESTED = ("""
eggs.spam.next()
""",
"""
next(eggs.spam)
""")


def test_next_method():
    check_on_input(*NEXT_METHOD)


def test_next_nested():
    check_on_input(*NEXT_NESTED)

2e0ff3af51cb387830f8d2da982bd572ee2f9e2c
<mask token>


def test_next_nested():
    check_on_input(*NEXT_NESTED)

<mask token>


def test_next_method():
    check_on_input(*NEXT_METHOD)


def test_next_nested():
    check_on_input(*NEXT_NESTED)

<mask token>
NEXT_METHOD = '\nspam.next()\n', '\nnext(spam)\n'
NEXT_NESTED = """
eggs.spam.next()
""", """
next(eggs.spam)
"""


def test_next_method():
    check_on_input(*NEXT_METHOD)


def test_next_nested():
    check_on_input(*NEXT_NESTED)

from __future__ import absolute_import
from utils import check_on_input
NEXT_METHOD = '\nspam.next()\n', '\nnext(spam)\n'
NEXT_NESTED = """
eggs.spam.next()
""", """
next(eggs.spam)
"""


def test_next_method():
    check_on_input(*NEXT_METHOD)


def test_next_nested():
    check_on_input(*NEXT_NESTED)

from __future__ import absolute_import

from utils import check_on_input


NEXT_METHOD = ("""
spam.next()
""",
"""
next(spam)
""")

NEXT_NESTED = ("""
eggs.spam.next()
""",
"""
next(eggs.spam)
""")


def test_next_method():
    check_on_input(*NEXT_METHOD)


def test_next_nested():
    check_on_input(*NEXT_NESTED)
