def test_init_args(): temp = ValueSortedDict(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 = ValueSortedDict(None, a=0, b=1, c=2) assert len(temp) == 3 assert temp['a'] == 0 assert temp.iloc[0] == 'a' temp._check()
def test_init(): temp = ValueSortedDict() temp._check()