def test_init_args(): temp = ItemSortedDict(key_func, enumerate(alphabet)) assert len(temp) == 26 assert temp[0] == 'a' assert temp[25] == 'z' assert temp.keys()[4] == 4 temp._check()
def test_init_args(): temp = ItemSortedDict(key_func, enumerate(alphabet)) assert len(temp) == 26 assert temp[0] == 'a' assert temp[25] == 'z' assert temp.iloc[4] == 4 temp._check()
def test_init_kwargs(): temp = ItemSortedDict(key_func, a=0, b=1, c=2) assert len(temp) == 3 assert temp['a'] == 0 assert temp.keys()[0] == 'a' temp._check()
def test_init(): temp = ItemSortedDict(key_func) temp._check()
def test_init_kwargs(): temp = ItemSortedDict(key_func, a=0, b=1, c=2) assert len(temp) == 3 assert temp['a'] == 0 assert temp.iloc[0] == 'a' temp._check()