def testListGivesNewest(self):
   possible_browsers = [
       FakePossibleBrowser(last_modification_time=2),
       FakePossibleBrowser(last_modification_time=3),  # newest
       FakePossibleBrowser(last_modification_time=1),
       ]
   self.assertIs(
     possible_browsers[1],
     android_browser_finder.SelectDefaultBrowser(possible_browsers))
 def testSinglePossibleReturnsSame(self):
   possible_browsers = [FakePossibleBrowser(last_modification_time=1)]
   self.assertIs(
     possible_browsers[0],
     android_browser_finder.SelectDefaultBrowser(possible_browsers))
 def testEmptyListGivesNone(self):
   self.assertIsNone(android_browser_finder.SelectDefaultBrowser([]))