Created
July 31, 2011 16:28
-
-
Save andrewsmedina/1116930 to your computer and use it in GitHub Desktop.
testing django model ordering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_response_should_be_ordered_by_date_desc(self): | |
''' | |
Response should be ordered by -date | |
''' | |
self.assertIn('-date', Response._meta.ordering) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment