@pytest.mark.usefixtures(u'clean_system')
@pytest.mark.parametrize(u'input_params, expected_context', context_data())
def test_generate_context(input_params, expected_context):
 assert (generate.generate_context(**input_params) == expected_context)

@ pytest . mark . usefixtures ( u'clean_system' ) @ pytest . mark . parametrize ( u'input_params, expected_context' , context_data ( ) ) def test_generate_context ( input_params , expected_context ) : assert ( generate . generate_context ( ** input_params ) == expected_context )
test the generated context for several input parameters against the according expected context .