<s> from __future__ import absolute_import <EOL> from __future__ import unicode_literals <EOL> from testing . utilities . auto_namedtuple import auto_namedtuple <EOL> from testing . utilities . response import Response <EOL> def test_ctor ( ) : <EOL> response = object ( ) <EOL> instance = Response ( response ) <EOL> assert instance . response == response <EOL> def test_pq ( ) : <EOL> response = auto_namedtuple ( '<STR_LIT>' , data = '<STR_LIT>' ) <EOL> instance = Response ( response ) <EOL> assert instance . pq . __html__ ( ) == response . data <EOL> def test_json ( ) : <EOL> response = auto_namedtuple ( '<STR_LIT>' , data = '<STR_LIT>' ) <EOL> instance = Response ( response ) <EOL> assert instance . json == { '<STR_LIT:foo>' : '<STR_LIT:bar>' } </s>
