#NEWLINE# def test_serializer_facet_date_result( self ) : #NEWLINE# #INDENT# dates = created . response . data [ 'dates' ] #NEWLINE# self . assertTrue ( ( 'created' in dates ) ) #NEWLINE# self . assertEqual ( len ( dates [ 'created' ] ) , 1 ) #NEWLINE# created = dates [ 'created' ] [ 0 ] #NEWLINE# self . assertTrue ( all ( [ ( k in created ) for k in ( 'text' , 'count' , 'narrow_url' ) ] ) ) #NEWLINE# self . assertEqual ( created [ 'text' ] , '2015-05-01T00:00:00' ) #NEWLINE# self . assertEqual ( created [ 'count' ] , 100 ) #NEWLINE# self . assertEqual ( created [ 'narrow_url' ] , '/search-person/facets/?selected_facets=created_exact%3A2015-05-01+00%3A00%3A00' )