waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

example_test.py (212B)


      1 import pyexample as m
      2 
      3 
      4 def test_example():
      5     obj = m.Example()
      6     obj.something = 42
      7     assert obj.something == 42
      8     assert obj.calculate() == 47  # with default argument
      9     assert obj.calculate(2) == 44