Simplify test_getitem

This commit is contained in:
Florian Bruhin 2017-12-15 14:41:38 +01:00
parent bb44f1d4cc
commit 7cebd95936

View File

@ -84,8 +84,7 @@ def test_start_no_items(hist):
def test_getitem(hist):
"""Test __getitem__."""
for i in range(0, len(HISTORY)):
assert hist[i] == HISTORY[i]
assert hist[0] == HISTORY[0]
def test_setitem(hist):