#NEWLINE# def test_valid_date( self ) : #NEWLINE# #INDENT# resp = self . client . get ( '/api/v1/notes/' , data = { #NEWLINE# #INDENT# 'format' : 'json' , #NEWLINE# 'created__gte' : '2010-03-31' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# deserialized = json . loads ( resp . content . decode ( 'utf-8' ) ) #NEWLINE# self . assertEqual ( len ( deserialized [ 'objects' ] ) , Note . objects . filter ( created__gte = '2010-03-31' ) . count ( ) )