Debian Codegraph @

test-crates/pyo3-pure/tests/test_pyo3_pure.py

raw
1 #!/usr/bin/env python3
2
3 import pyo3_pure
4
5 import pytest
6
7
8 def test_static():
9 assert pyo3_pure.fourtytwo == 42
10
11
12 def test_class():
13 assert pyo3_pure.DummyClass.get_42() == 42
14
15
16 def test_function():
17 with pytest.raises(AssertionError):
18 assert pyo3_pure.DummyClass == 42