Beispiel #1
0
 def test_store_get(self):
     m = QChatMailbox()
     m.storeMessage(self.test_message)
     stored = m.getMessages()[0]
     assert stored.sender == self.test_message.sender
     assert stored.header == self.test_message.header
     assert stored.data == self.test_message.data
Beispiel #2
0
 def test_getMessage(self):
     m = QChatMailbox()
     assert m.getMessages() == []
     m.messages = [self.test_message]
     assert m.getMessages() == [self.test_message]