def test_sort(self): chars = ItemList(str, items='asdfg') chars.sort() assert_equal(list(chars), sorted('asdfg'))