File: test_fix_next.py

package info (click to toggle)
modernize 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 416 kB
  • sloc: python: 2,016; makefile: 145
file content (29 lines) | stat: -rw-r--r-- 336 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from __future__ import generator_stop

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)