def test_value_less_than_min(self): self.endpoint_data.min_microversion = '1.42' self.assertIsNone(utils.maximum_supported_microversion(self.adapter, '1.2'))
def test_with_value(self): self.assertEqual('1.42', utils.maximum_supported_microversion(self.adapter, '1.42'))
def test_value_more_than_max(self): self.assertEqual('1.99', utils.maximum_supported_microversion(self.adapter, '1.100'))
def test_with_none(self): self.assertIsNone(utils.maximum_supported_microversion(self.adapter, None))