def test_index_to_tuple_longbecomestuple(): tpl = series._index_to_tuple(928374928374928L) assert type(tpl) == tuple and tpl == (928374928374928L,)
def test_index_to_tuple_arrayok(): tpl = series._index_to_tuple([1,2,3]) assert type(tpl) == tuple and tpl[1] == 2 and tpl[2] == 3
def test_index_to_tuple_intbecomestuple(): tpl = series._index_to_tuple(32) assert type(tpl) == tuple and tpl == (32,)
def test_index_to_tuple_floaterror(): try: series._index_to_tuple(5.1) assert False except TypeError: assert True