Skip to content

Commit b5dc8ff

Browse files
committed
Update a test
1 parent 7cb9389 commit b5dc8ff

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

hypothesis-python/tests/nocover/test_labels.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,17 @@ def bar(draw):
3434
return draw(st.none())
3535

3636

37+
@st.composite
38+
def baz(draw):
39+
return draw(st.booleans())
40+
41+
42+
def test_equivalent_composites_have_same_label():
43+
assert foo().label == bar().label
44+
45+
3746
def test_different_composites_have_different_labels():
38-
assert foo().label != bar().label
47+
assert foo().label != baz().label
3948

4049

4150
def test_one_of_label_is_distinct():

0 commit comments

Comments
 (0)