def test_make_character_index_with_default_args(): keys = ('red riding hood', 'grandmother', 'wolf', 'woodsman') values = ([1, 2, 3, 6, 7, 8, 11, 18, 19, 21, 24, 26, 28, 30, 33, 36], [ 2, 3, 5, 11, 12, 14, 15, 16, 17, 21, 22, 24, 26, 28, 30, 33, 36 ], [9, 10, 13, 14, 16, 17, 18, 20, 23, 25, 27, 29, 30, 31, 33, 35], [32, 34, 35]) expected = dict(zip(keys, values)) actual = make_character_index() assert actual == expected
def test_make_character_index_with_other_args(): keys = ('elder brother', 'younger brother', 'the tree') values = ( [2, 3, 7, 9, 10, 11, 14, 15], [2, 11], [4, 5, 7, 8, 9, 15], ) actual = make_character_index(text=the_neetle_tree, characters=characters) expected = dict(zip(keys, values)) assert actual == expected