def test_send_message(self):
    self._send_message('**test message**')
    self._send_message('**test message**')
    with self.app.app_context():
        assert (Message.query.filter_by(text='**test message**').count() == 2)
def test_send_message(self):
    self._send_message('**test message**')
    self._send_message('**test message**')
    with self.app.app_context():
        assert (Message.query.filter_by(text='**test message**').count() == 2)