Beispiel #1
0
 def test_min_version(self):
     old = sys.version_info
     sys.version_info = (2, 6)
     with self.assertRaises(SystemExit):
         pyaspeller.check_version()
     sys.version_info = old
Beispiel #2
0
 def test_correct_version(self):
     old = sys.version_info
     sys.version_info = (2, 7)
     pyaspeller.check_version()
     sys.version_info = old