예제 #1
0
 def test_value_less_than_min(self):
     self.endpoint_data.min_microversion = '1.42'
     self.assertIsNone(utils.maximum_supported_microversion(self.adapter,
                                                            '1.2'))
예제 #2
0
 def test_with_value(self):
     self.assertEqual('1.42',
                      utils.maximum_supported_microversion(self.adapter,
                                                           '1.42'))
예제 #3
0
 def test_value_more_than_max(self):
     self.assertEqual('1.99',
                      utils.maximum_supported_microversion(self.adapter,
                                                           '1.100'))
예제 #4
0
 def test_with_none(self):
     self.assertIsNone(utils.maximum_supported_microversion(self.adapter,
                                                            None))
예제 #5
0
 def test_value_less_than_min(self):
     self.endpoint_data.min_microversion = '1.42'
     self.assertIsNone(utils.maximum_supported_microversion(self.adapter,
                                                            '1.2'))
예제 #6
0
 def test_value_more_than_max(self):
     self.assertEqual('1.99',
                      utils.maximum_supported_microversion(self.adapter,
                                                           '1.100'))
예제 #7
0
 def test_with_value(self):
     self.assertEqual('1.42',
                      utils.maximum_supported_microversion(self.adapter,
                                                           '1.42'))
예제 #8
0
 def test_with_none(self):
     self.assertIsNone(utils.maximum_supported_microversion(self.adapter,
                                                            None))