Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1from e13_tuple_records import format_sort_records, PEOPLE 

2 

3 

4def test_empty(): 

5 assert format_sort_records([]) == [] 

6 

7 

8def test_with_people(): 

9 output = format_sort_records(PEOPLE) 

10 assert isinstance(output, list) 

11 assert all(isinstance(x, str) for x in output) 

12 

13 assert output[0][:10].strip() == 'Putin' 

14 assert output[0][10:20].strip() == 'Vladimir' 

15 assert output[0][20:].strip() == '3.63'