#NEWLINE# def test_GET( self ) : #NEWLINE# #INDENT# data = [ ( 'A' , 'www' , '192.168.0.1' ) , ( 'A' , 'x' , '192.168.0.2' ) ] #NEWLINE# self . zone . a_records = MagicMock ( return_value = data ) #NEWLINE# rv = self . resource . render_GET ( None ) #NEWLINE# self . assertEqual ( rv , '\n' . join ( [ ( '%s %s %s' % ( x , y , z ) ) for ( x , y , z ) in data ] ) )