def test_indexeddict_index(val, res): a = IndexedDict(a=1, b=2, c=3, d=4) check.equal(a.index(val), res)
def test_indexeddict_invalid_key(): a = IndexedDict(a=1, b=2, c=3, d=4) with pytest.raises(KeyError): a.index('e')
def test_indexeddict_index(self, val, res): a = IndexedDict(a=1, b=2, c=3, d=4) assert_equal(a.index(val), res)