def test_delete_message(self):
    self._send_message('**test message**')
    self._send_message('**test message**')
    self._activate_context_menu_action(Actions.DELETE)
    QtTest.QTest.qWait(100)
    with self.app.app_context():
        assert (Message.query.filter_by(text='test edit').count() == 0)
def test_delete_message(self):
    self._send_message('**test message**')
    self._send_message('**test message**')
    self._activate_context_menu_action(Actions.DELETE)
    QtTest.QTest.qWait(100)
    with self.app.app_context():
        assert (Message.query.filter_by(text='test edit').count() == 0)