예제 #1
0
 def testCsvUrl_NoRows_OnlyTestPathSpecified(self):
     # If there are no rows available for some reason, a CSV download
     # URL can still be constructed, but without specific revisions.
     self.assertEqual('/graph_csv?test_path=M%2Fb%2Fsuite%2Ffoo',
                      debug_alert._CsvUrl('M/b/suite/foo', []))
예제 #2
0
 def testCsvUrl_NoRows_OnlyTestPathSpecified(self):
   # If there are no rows available for some reason, a CSV download
   # URL can still be constructed, but without specific revisions.
   self.assertEqual(
       '/graph_csv?test_path=M%2Fb%2Fsuite%2Ffoo',
       debug_alert._CsvUrl('M/b/suite/foo', []))
예제 #3
0
 def testCsvUrl_RowsGiven_AllParamsSpecified(self):
     self._AddSampleData()
     rows = graph_data.Row.query().fetch(limit=20)
     self.assertEqual(
         '/graph_csv?test_path=M%2Fb%2Fsuite%2Ffoo&num_points=20&rev=319',
         debug_alert._CsvUrl('M/b/suite/foo', rows))
예제 #4
0
 def testCsvUrl_RowsGiven_AllParamsSpecified(self):
   self._AddSampleData()
   rows = graph_data.Row.query().fetch(limit=20)
   self.assertEqual(
       '/graph_csv?test_path=M%2Fb%2Fsuite%2Ffoo&num_points=20&rev=319',
       debug_alert._CsvUrl('M/b/suite/foo', rows))