def test_invalid_json(self):
        telegram = self.get_telegram()
        with requests_mock.mock() as m:
            m.post(telegram.url_base.format('foo'), text='{"}invalid')
            with self.assertRaises(ConfirmationError):