Skip to content

Instantly share code, notes, and snippets.

@andrewsmedina
Created July 31, 2011 16:28
Show Gist options
  • Save andrewsmedina/1116930 to your computer and use it in GitHub Desktop.
Save andrewsmedina/1116930 to your computer and use it in GitHub Desktop.
testing django model ordering
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