#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . banned_usernames = [ 'deanj' , 'r1cky' , 'mythmon' ] #NEWLINE# for username in self . banned_usernames : #NEWLINE# #INDENT# TwitterAccountFactory ( username = username , banned = True ) #NEWLINE# #UNINDENT# self . normal_usernames = [ 'willkg' , 'marcell' , 'ian' ] #NEWLINE# for username in self . normal_usernames : #NEWLINE# #INDENT# TwitterAccountFactory ( username = username , banned = False ) #NEWLINE# #UNINDENT# u = UserFactory ( ) #NEWLINE# add_permission ( self , TwitterAccount , 'ban_account' ) #NEWLINE# self . client . login ( username = u . username , password = 'testpass' )