#NEWLINE# def test_by_login_ok_mirrored( self ) : #NEWLINE# #INDENT# from pyshop.models import User #NEWLINE# user = User . by_login ( self . session , 'johndo' , local = False ) #NEWLINE# self . assertIsInstance ( user , User ) #NEWLINE# self . assertEqual ( user . login , 'johndo' )