Пример #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))