def test_LinkAnnotation_WithData(self):
     self.assertEqual(
         ('@@@STEP_LINK@Results Dashboard@'
          'https://chromeperf.appspot.com/report'
          '?masters=MyMaster&bots=b&tests=sunspider&rev=1234@@@'),
         results_dashboard._LinkAnnotation('https://chromeperf.appspot.com',
                                           [{
                                               'master': 'MyMaster',
                                               'bot': 'b',
                                               'test': 'sunspider/Total',
                                               'revision': 1234,
                                               'value': 10,
                                           }]))
 def test_LinkAnnotation_WithData(self):
   self.assertEqual(
       ('@@@STEP_LINK@Results Dashboard@'
        'https://chromeperf.appspot.com/report'
        '?masters=MyMaster&bots=b&tests=sunspider&rev=1234@@@'),
       results_dashboard._LinkAnnotation(
           'https://chromeperf.appspot.com',
           [{
               'master': 'MyMaster',
               'bot': 'b',
               'test': 'sunspider/Total',
               'revision': 1234,
               'value': 10,
           }]))
 def test_LinkAnnotation_UnexpectedData(self):
     self.assertIsNone(results_dashboard._LinkAnnotation('', {}))
 def test_LinkAnnotation_UnexpectedData(self):
   self.assertIsNone(results_dashboard._LinkAnnotation('', {}))