Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/division_roundtrip_arithmeticerror_handler.txt

raw
1 # This test code was written by the `hypothesis.extra.ghostwriter` module
2 # and is provided under the Creative Commons Zero public domain dedication.
3
4 import operator
5 import test_expected_output
6 from hypothesis import given, reject, strategies as st
7
8
9 @given(a=st.integers(), b=st.integers())
10 def test_roundtrip_divide_mul(a: int, b: int) -> None:
11 try:
12 value0 = test_expected_output.divide(a=a, b=b)
13 value1 = operator.mul(value0, b)
14 except ArithmeticError:
15 reject()
16 assert a == value1, (a, value1)