mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 03:09:30 +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
|