knx/tests/test_union.py
Thomas Kunze f34e604d3b Squashed 'examples/knxPython/pybind11/' content from commit 59a2ac27
git-subtree-dir: examples/knxPython/pybind11
git-subtree-split: 59a2ac2745d8a57ac94c6accced73620d59fb844
2020-10-28 21:09:58 +01:00

10 lines
172 B
Python

# -*- coding: utf-8 -*-
from pybind11_tests import union_ as m
def test_union():
instance = m.TestUnion()
instance.as_uint = 10
assert instance.as_int == 10