def test_type_error_if_not_dict_context(replay_test_dir, template_name):
    with pytest.raises(TypeError):
        replay.dump(replay_test_dir, template_name, 'not_a_dict')
Test that replay.dump raises if the context is not of type dict.
dataset/ETHPy150Open audreyr/cookiecutter/tests/replay/test_dump.py/test_type_error_if_not_dict_context