Ejemplo n.º 1
0
 def test_unstable_multiple(self):
     """Test unstable alongside multiple other versions."""
     self.assertEqual(self.unstable,
                      uprev_lib.best_chrome_version(self.unstable_versions))
Ejemplo n.º 2
0
 def test_unstable_only(self):
     """Test the unstable version."""
     self.assertEqual(self.unstable,
                      uprev_lib.best_chrome_version([self.unstable]))
Ejemplo n.º 3
0
 def test_multiple_versions(self):
     """Test a single version."""
     self.assertEqual(self.best,
                      uprev_lib.best_chrome_version(self.versions))
Ejemplo n.º 4
0
 def test_no_versions_fail(self):
     """Test no versions given."""
     with self.assertRaises(AssertionError):
         uprev_lib.best_chrome_version([])
Ejemplo n.º 5
0
 def test_single_version(self):
     """Test a single version."""
     self.assertEqual(self.best, uprev_lib.best_chrome_version([self.best]))