File: test_casing_inner_class.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 (14 lines) | stat: -rw-r--r-- 457 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"
    )