예제 #1
0
 def test_compareVersionDriver_string_case05(self):
     """ Compare version1 = '1.0' and version2 = '5.9.8.5.2' Version2 is greater \n """
     self.assertEqual(cv.compareVersionDriver('1.0', '5.9.8.5.2'),"'1.0' is smaller than '5.9.8.5.2'")
     print("\n In test_compareVersionDriver_string_case05()")
예제 #2
0
 def test_compareVersionDriver_string_case03(self):
     """ Compare version1 = '1.2.4.0.0.1.0' and version2 = '1.2.4.0.0.1.0.0.0' Version1 is greater \n """
     self.assertEqual(cv.compareVersionDriver('1.2.4.0.0.1.0', '1.2.4.0.0.1.0.0.0'),"'1.2.4.0.0.1.0' is same version as '1.2.4.0.0.1.0.0.0'")
     print("\n In test_compareVersionDriver_string_case03()")
예제 #3
0
 def test_compareVersionDriver_string_case04(self):
     """ Compare version1 = '1.2.3.0.0.0.0.0.0' and version2 =  '1.2.3' Version1 and version2 are equal \n """
     self.assertEqual(cv.compareVersionDriver('1.2.3.0.0.0.0.0.0', '1.2.3'),"'1.2.3.0.0.0.0.0.0' is same version as '1.2.3'")
     print("\n In test_compareVersionDriver_string_case04()")
예제 #4
0
 def test_compareVersionDriver_string_case14(self):
     """ Compare version1 = '1.2.c' and version2 = 1.b.1.a' it should Value Error \n """
     with self.assertRaises(ValueError): cv.compareVersionDriver('1.2.c', '1.b.1.a')
     print("\n In test_compareVersionDriver_string_case14()") 
예제 #5
0
 def test_compareVersionDriver_string_case02(self):
     """ Compare version1 = '2' and version2 = '3' Version2 is greater \n """
     self.assertEqual(cv.compareVersionDriver('2', '3'),"'2' is smaller than '3'")
     print("\n In test_compareVersionDriver_string_case02()")
예제 #6
0
 def test_compareVersionDriver_string_case13(self):
     """ Compare version1 = '1.2' and version2 = 2.3 it should Attribute Error \n """
     with self.assertRaises(AttributeError): cv.compareVersionDriver('1.2', 2.3)
     print("\n In test_compareVersionDriver_string_case13()") 
예제 #7
0
 def test_compareVersionDriver_string_case12(self):
     self.assertEqual(cv.compareVersionDriver('1.2.0', '1.2.1'),"'1.2.0' is smaller than '1.2.1'")
     print("\n In test_compareVersionDriver_string_case12()") 
예제 #8
0
 def test_compareVersionDriver_string_case11(self):
     """ Compare version1 = '1.4.0.6' and version2 = 1.4.1.0' Version2 is greater \n """
     self.assertEqual(cv.compareVersionDriver('1.4.0.6', '1.4.1.0'),"'1.4.0.6' is smaller than '1.4.1.0'")
     print("\n In test_compareVersionDriver_string_case11()")
예제 #9
0
 def test_compareVersionDriver_string_case10(self):
     """ Compare version1 = '1.2.1.0.0.0.1' and version2 = '1.2.0.2.9.0.1.2.1.2.3.5' Version1 is greater \n """
     self.assertEqual(cv.compareVersionDriver('1.2.1.0.0.0.1', '1.2.0.2.9.0.1.2.1.2.3.5'),"'1.2.0.2.9.0.1.2.1.2.3.5' is smaller than '1.2.1.0.0.0.1'")
     print("\n In test_compareVersionDriver_string_case10()")
예제 #10
0
 def test_compareVersionDriver_string_case08(self):
     """ Compare version1 = '5' and version2 = '1.0.0.0.0' Version1 is greater \n """
     self.assertEqual(cv.compareVersionDriver('5', '1.0.0.0.0'),"'1.0.0.0.0' is smaller than '5'")
     print("\n In test_compareVersionDriver_string_case08()")