opm-simulators/python/pybind11/tests/test_union.py
2019-10-31 16:35:29 +01:00

9 lines
148 B
Python

from pybind11_tests import union_ as m
def test_union():
instance = m.TestUnion()
instance.as_uint = 10
assert instance.as_int == 10