#NEWLINE# @ pytest . mark . parametrize ( 'value_in,json_out' , [ ( { #NEWLINE# #INDENT# 'foo' : 42 , #NEWLINE# #UNINDENT# } , '{"foo": 42}' ) ] ) #NEWLINE# def test_to_json( value_in , json_out ) : #NEWLINE# #INDENT# result = str ( ext . to_json ( value_in ) ) #NEWLINE# assert ( result == value_in )