def test_store_get(self): m = QChatMailbox() m.storeMessage(self.test_message) stored = m.getMessage(self.test_user) assert stored.sender == self.test_message.sender assert stored.header == self.test_message.header assert stored.data == self.test_message.data
def test_storeMessage(self): m = QChatMailbox() m.storeMessage(self.test_message) [stored] = m.messages[self.test_user] assert stored.sender == self.test_message.sender assert stored.header == self.test_message.header assert stored.data == self.test_message.data