Example #1
0
 def test_checker_check__update_to_rc_version_from_beta_version(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     self.assertTrue(checker.check(self.TRACKED_PACKAGE, '4.0.0b4'))
Example #2
0
 def test_checker_check__successful(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     result = checker.check(self.TRACKED_PACKAGE, '1.0.0')
     self.assertTrue(result is not None)
Example #3
0
 def test_checker_check__no_update_to_beta_version(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     self.assertFalse(checker.check(self.TRACKED_PACKAGE, '3.6'))
Example #4
0
 def test_checker_check__bad_url(self):
     checker = UpdateChecker('http://sdlkjsldfkjsdlkfj.com')
     checker.bypass_cache = True
     self.assertFalse(checker.check(self.TRACKED_PACKAGE, '0.0.1'))
Example #5
0
 def test_check_check__bad_package(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     self.assertFalse(checker.check(self.UNTRACKED_PACKAGE, '0.0.1'))
 def test_check_check__untracked_package(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     self.assertEqual("update_checker does not support 'requests'",
                      checker.check(self.UNTRACKED_PACKAGE, '0.0.1'))
 def test_check_check__untracked_package(self):
     checker = UpdateChecker()
     checker.bypass_cache = True
     self.assertEqual("update_checker does not support 'requests'",
                      checker.check(self.UNTRACKED_PACKAGE, '0.0.1'))