예제 #1
0
 def test_find_all_browser_types_non_trybot_browser(self):
     finder_options = browser_options.BrowserFinderOptions(
         browser_type='release')
     trybot_browser_finder.urllib2 = simple_mock.MockObject()
     self.assertEquals(
         [],
         # pylint: disable=W0212
         sorted(trybot_browser_finder.FindAllBrowserTypes(finder_options)))
예제 #2
0
 def test_find_all_browser_types_trybot(self):
     finder_options = browser_options.BrowserFinderOptions(
         browser_type='trybot-win')
     self._MockTryserverJson({
         'android_nexus4_perf_bisect': 'stuff',
         'mac_10_9_perf_bisect': 'otherstuff',
         'win_perf_bisect_builder': 'not a trybot',
     })
     expected_trybots_list = [
         'trybot-all', 'trybot-all-android', 'trybot-all-linux',
         'trybot-all-mac', 'trybot-all-win', 'trybot-android-nexus4',
         'trybot-mac-10-9'
     ]
     self.assertEquals(
         expected_trybots_list,
         sorted(trybot_browser_finder.FindAllBrowserTypes(finder_options)))