Exemple #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))
Exemple #2
0
 def test_unstable_only(self):
     """Test the unstable version."""
     self.assertEqual(self.unstable,
                      uprev_lib.best_chrome_version([self.unstable]))
Exemple #3
0
 def test_multiple_versions(self):
     """Test a single version."""
     self.assertEqual(self.best,
                      uprev_lib.best_chrome_version(self.versions))
Exemple #4
0
 def test_no_versions_fail(self):
     """Test no versions given."""
     with self.assertRaises(AssertionError):
         uprev_lib.best_chrome_version([])
Exemple #5
0
 def test_single_version(self):
     """Test a single version."""
     self.assertEqual(self.best, uprev_lib.best_chrome_version([self.best]))