#NEWLINE# def test_none_single( self ) : #NEWLINE# #INDENT# @ as_json #NEWLINE# def view1( ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# r = view1 ( ) #NEWLINE# assert_equals ( r . status_code , 200 ) #NEWLINE# assert_dict_equal ( view1 . json , { #NEWLINE# #INDENT# 'status' : 200 , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert_equals ( r . headers . get ( 'Content-Type' ) , 'application/json' )