def test_post_to_invalid_web_hook(self):
        logger = SlackLogger(DUMMY_WEB_HOOK)

        time.sleep(2)
        with pytest.raises(Exception) as exc_info:
            logger.error('Test Message', 'Test Title')
        assert 'Failed' in str(exc_info.value)
dataset/ETHPy150Open iktakahiro/slackpy/tests/test_slackpy.py/TestSlackLogger.test_post_to_invalid_web_hook/original