'Template assertions work when there is a single context'

def test_single_context(self):

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