🐛 fix python 3 unit test failure

This commit is contained in:
chfw 2017-12-08 23:22:59 +00:00
parent 3ec21dd737
commit 662bf7f5d1
1 changed files with 3 additions and 4 deletions

View File

@ -34,9 +34,8 @@ def test_merged_cell_class():
test_dict = {}
merged_cell = MergedCell(1, 4, 1, 4)
merged_cell.register_cells(test_dict)
keys = list(test_dict.keys())
expected = ['2-2', '2-3', '2-1', '1-1',
'1-3', '1-2', '3-3', '3-2',
'3-1']
keys = sorted(list(test_dict.keys()))
expected = ['1-1', '1-2', '1-3', '2-1',
'2-2', '2-3', '3-1', '3-2', '3-3']
eq_(keys, expected)
eq_(merged_cell, test_dict['3-1'])