expected_list has 10 as its first element but assert at end of test pushes 3, not 10.
expected_list
10
assert