def test_welcome_exception(self): config = {} response = opsdroid.welcome_message(config) self.assertIsNone(response)
def test_welcome_message(self): config = {"welcome-message": True} with mock.patch('opsdroid.__main__._LOGGER.info') as logmock: opsdroid.welcome_message(config) self.assertTrue(logmock.called)
def test_welcome_message(self): config = {"welcome-message": True} opsdroid.welcome_message(config) self.assertLogs('_LOGGER', 'info')