def test_pow(): sourcer = EventSourcer() sourcer.add(2) sourcer.pow(3) assert sourcer.value == 8
def test_pow_float(): sourcer = EventSourcer() sourcer.add(4) sourcer.pow(0.5) assert sourcer.value == 2 assert isinstance(sourcer.value, int)