Пример #1
0
 def setup(self):
     self.requested = '1.90.0'
     useVersion(self.requested)
Пример #2
0
 def test_older_version(self):
     assert (useVersion(self.requested))
Пример #3
0
 def test_currentVersion(self):
     vers = useVersion('1.90.0')
     assert (vers == '1.90.0')
Пример #4
0
 def test_currentVersion():
     vers = useVersion(requested)
     assert vers == requested
Пример #5
0
 def test_currentVersion():
     vers = useVersion(requested)
     assert vers == requested
Пример #6
0
 def test_compatible(self):
     assert (useVersion('1.90.0'))
Пример #7
0
 def test_raise_error(self):
     if constants.PY3:
         with pytest.raises(RuntimeError):
             useVersion('1.80.0')