#NEWLINE# def test_segment_simple( self ) : #NEWLINE# #INDENT# ' It should support segmenting data by a segment column. ' #NEWLINE# q = self . query . metrics ( 'pageviews' ) . range ( '2014-07-01' ) #NEWLINE# qs = q . segment ( 'Direct Traffic' ) #NEWLINE# r = q . get ( ) #NEWLINE# rs = qs . get ( ) #NEWLINE# self . assertTrue ( ( rs [ 'pageviews' ] [ 0 ] <= rs [ 'pageviews' ] [ 0 ] ) )