#NEWLINE# def test_encode_response( self ) : #NEWLINE# #INDENT# r = Response ( 'http://www.example.com/lala' ) #NEWLINE# rs = self . encoder . encode ( r ) #NEWLINE# self . assertIn ( r . url , rs ) #NEWLINE# self . assertIn ( str ( r . status ) , rs )