def test_delete_message(self): self.message1.save() message1 = Message.get(id=1) self.assertTrue(message1.delete()) self.assertFalse(Message.check_exists(id=1))
def test_message_exists(self): self.assertFalse(Message.check_exists(id=1)) self.message1.save() self.assertTrue(Message.check_exists(id=1))