mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
10 lines
212 B
Python
10 lines
212 B
Python
import pyexample as m
|
|
|
|
|
|
def test_example():
|
|
obj = m.Example()
|
|
obj.something = 42
|
|
assert obj.something == 42
|
|
assert obj.calculate() == 47 # with default argument
|
|
assert obj.calculate(2) == 44
|