def test_set_quantization_approach_on_empty_config(self) -> None: """Test set_quantization_approach.""" config = Config() config.set_quantization_approach("Some quantization approach") self.assertIsNone(config.quantization)
def test_set_quantization_approach(self) -> None: """Test set_quantization_approach.""" config = Config(self.predefined_config) config.set_quantization_approach("Some quantization approach") self.assertEqual("Some quantization approach", config.quantization.approach)