'Template assertions work when there is a single context'

def test_single_context(self):

    response = self.client.get('/test_client/post_view/', {})
    try:
        self.assertTemplateNotUsed(response, 'Empty    GET    Template')
    except AssertionError as e:
        self.assertEquals(str(e), "Template    'Empty    GET    Template'    was    used    unexpectedly    in    rendering    the    response")
    try:
        self.assertTemplateNotUsed(response, 'Empty    GET    Template', msg_prefix='abc')
    except AssertionError as e:
        self.assertEquals(str(e), "abc:    Template    'Empty    GET    Template'    was    used    unexpectedly    in    rendering    the    response")
    try:
        self.assertTemplateUsed(response, 'Empty    POST    Template')
    except AssertionError as e:
        self.assertEquals(str(e), "Template    'Empty    POST    Template'    was    not    a    template    used    to    render    the    response.    Actual    template(s)    used:    Empty    GET    Template")
    try:
        self.assertTemplateUsed(response, 'Empty    POST    Template', msg_prefix='abc')
    except AssertionError as e:
        self.assertEquals(str(e), "abc:    Template    'Empty    POST    Template'    was    not    a    template    used    to    render    the    response.    Actual    template(s)    used:    Empty    GET    Template")
