Clean up assertion

This commit is contained in:
Florian Bruhin 2016-05-08 20:00:34 +02:00
parent f49cc4e901
commit ddc1f803c0

View File

@ -44,7 +44,5 @@ def test_filter_accepts_row(pattern, data, expected):
idx = filter_model.index(0, 0)
assert idx.isValid()
if expected:
assert filter_model.rowCount(idx) == 1
else:
assert filter_model.rowCount(idx) == 0
row_count = filter_model.rowCount(idx)
assert row_count == (1 if expected else 0)