File: test_casing_inner_class.py

package info (click to toggle)
python-aristaproto 1.2%2B20240521-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,484 kB
  • sloc: python: 5,915; java: 106; xml: 84; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 453 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import tests.output_aristaproto.casing_inner_class as casing_inner_class


def test_message_casing_inner_class_name():
    assert hasattr(
        casing_inner_class, "TestInnerClass"
    ), "Inline defined Message is correctly converted to CamelCase"


def test_message_casing_inner_class_attributes():
    message = casing_inner_class.Test()
    assert hasattr(
        message.inner, "old_exp"
    ), "Inline defined Message attribute is snake_case"