File: test_nestedtwice.py

package info (click to toggle)
python-aristaproto 1.2%2Breally0.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,600 kB
  • sloc: python: 6,521; java: 106; xml: 84; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (2)
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
import pytest

from tests.output_aristaproto.nestedtwice import (
    Test,
    TestTop,
    TestTopMiddle,
    TestTopMiddleBottom,
    TestTopMiddleEnumBottom,
    TestTopMiddleTopMiddleBottom,
)


@pytest.mark.parametrize(
    ("cls", "expected_comment"),
    [
        (Test, "Test doc."),
        (TestTopMiddleEnumBottom, "EnumBottom doc."),
        (TestTop, "Top doc."),
        (TestTopMiddle, "Middle doc."),
        (TestTopMiddleTopMiddleBottom, "TopMiddleBottom doc."),
        (TestTopMiddleBottom, "Bottom doc."),
    ],
)
def test_comment(cls, expected_comment):
    assert cls.__doc__ == expected_comment