def assertContentBefore(self, response, text1, text2):
failing_msg = "<STR_LIT>" % (text1, text2)<EOL>self.assertEqual(response.status_code, <NUM_LIT:200>)<EOL>self.assertTrue(<EOL>response.content.index(force_bytes(text1)) <<EOL>response.content.index(force_bytes(text2)),<EOL>failing_msg)<EOL>
Testing utility asserting that text1 appears before text2 in response
content. Modified from:
https://github.com/django/django/blob/master/tests/admin_views/tests.py