<s> """<STR_LIT>""" <EOL> from django . test import TestCase <EOL> from django . test . client import RequestFactory <EOL> from django . views . generic import TemplateView <EOL> from django_libs . views_mixins import AjaxResponseMixin <EOL> class DummyView ( AjaxResponseMixin , TemplateView ) : <EOL> """<STR_LIT>""" <EOL> template_name = "<STR_LIT>" <EOL> class AjaxResponseMixinTestCase ( TestCase ) : <EOL> longMessage = True <EOL> def setUp ( self ) : <EOL> self . view = DummyView ( ) <EOL> def test_mixin ( self ) : <EOL> """<STR_LIT>""" <EOL> extra = { '<STR_LIT>' : '<STR_LIT>' } <EOL> req = RequestFactory ( ) . get ( '<STR_LIT:/>' , ** extra ) <EOL> self . view . request = req <EOL> self . assertEqual ( self . view . get_template_names ( ) , <EOL> [ '<STR_LIT>' ] , <EOL> msg = '<STR_LIT>' ) </s>
