def test_unstable_multiple(self): """Test unstable alongside multiple other versions.""" self.assertEqual(self.unstable, uprev_lib.best_chrome_version(self.unstable_versions))
def test_unstable_only(self): """Test the unstable version.""" self.assertEqual(self.unstable, uprev_lib.best_chrome_version([self.unstable]))
def test_multiple_versions(self): """Test a single version.""" self.assertEqual(self.best, uprev_lib.best_chrome_version(self.versions))
def test_no_versions_fail(self): """Test no versions given.""" with self.assertRaises(AssertionError): uprev_lib.best_chrome_version([])
def test_single_version(self): """Test a single version.""" self.assertEqual(self.best, uprev_lib.best_chrome_version([self.best]))