#NEWLINE# def test_changes_endpoint( server_with_data ) : #NEWLINE# #INDENT# resp = server_with_data . server . client . get ( flask . url_for ( 'changes.show' , metric_name = 'PythonImportCount' , start_timestamp = 0 , end_timestamp = ( 2 ** 62 ) ) ) #NEWLINE# assert_no_response_errors ( server_with_data ) #NEWLINE# pq = pyquery . PyQuery ( resp . json [ 'body' ] ) #NEWLINE# assert ( len ( pq . find ( 'table' ) ) == 1 ) #NEWLINE# assert ( pq . find ( '.metric-up' ) . text ( ) == '2' )