Debian Codegraph @

hypothesis-python/tests/ghostwriter/recorded/division_operator_with_annotations.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 from hypothesis import given, strategies as st
6
7 # TODO: replace st.nothing() with an appropriate strategy
8
9 truediv_operands = st.nothing()
10
11
12 @given(a=truediv_operands)
13 def test_identity_binary_operation_truediv(a) -> None:
14 identity = "identity element here"
15 assert a == operator.truediv(a, identity)
16 assert a == operator.truediv(identity, a)