def test_set_bookdict(): b = Book() b.bookdict = {"sheet1": [[1]], "sheet2": [[2]]} expected = dedent(""" sheet1: +---+ | 1 | +---+ sheet2: +---+ | 2 | +---+""").strip() eq_(str(b), expected)
def test_set_bookdict(): b = Book() b.bookdict = {"sheet1": [[1]], "sheet2": [[2]]} expected = dedent(""" sheet1: +---+ | 1 | +---+ sheet2: +---+ | 2 | +---+""").strip() eq_(str(b), expected) expected = OrderedDict([("sheet1", [[1]]), ("sheet2", [[2]])]) eq_(b.bookdict, expected)