test_helpers: Create get_last_message helper.

This commit is contained in:
Tomasz Kolek
2016-04-13 23:59:08 +02:00
committed by Tim Abbott
parent 5fbda3a9c1
commit 12fc4f047c
4 changed files with 23 additions and 28 deletions

View File

@@ -365,3 +365,5 @@ class AuthedTestCase(TestCase):
return msg
def get_last_message(self):
return Message.objects.latest('id')