def test_set_performance_num_of_instance(self) -> None: """Test set_performance_num_of_instance.""" config = Config(self.predefined_config) self.assertNotEqual(1234, config.get_performance_num_of_instance()) config.set_performance_num_of_instance(1234) self.assertEqual(1234, config.get_performance_num_of_instance())
def test_set_performance_num_of_instance_on_empty_config(self) -> None: """Test set_performance_num_of_instance on empty config.""" config = Config() config.set_performance_num_of_instance(1234) self.assertIsNone(config.get_performance_num_of_instance())