def test_value_error_if_key_missing_in_context(replay_test_dir, template_name):
 with pytest.raises(ValueError):
  replay.dump(replay_test_dir, template_name, {'foo': 'bar'})

def test_value_error_if_key_missing_in_context ( replay_test_dir , template_name ) : with pytest . raises ( ValueError ) : replay . dump ( replay_test_dir , template_name , { 'foo' : 'bar' } )
test that replay .