Example #1
0
    def test_config_application(self):
        """Test depcrecated method application"""
        cfg = mock.create_autospec(Configuration)
        cfg._log = logging.getLogger("application")
        Configuration.application(cfg)
        self.assertTrue(cfg.current_jobtype.called)

        Configuration.application(cfg, "test")
        cfg.current_jobtype.assert_called_with("test")
    def test_config_application(self):
        """Test depcrecated method application"""
        cfg = mock.create_autospec(Configuration)
        cfg._log = logging.getLogger("application")
        Configuration.application(cfg)
        self.assertTrue(cfg.current_jobtype.called)

        Configuration.application(cfg, "test")
        cfg.current_jobtype.assert_called_with("test")