#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# url_slug = 'nameserver' #NEWLINE# dname = random_label ( ) #NEWLINE# self . client = Client ( ) #NEWLINE# self . url_slug = url_slug #NEWLINE# ( self . domain , create ) = Domain . objects . get_or_create ( name = dname ) #NEWLINE# while ( not create ) : #NEWLINE# #INDENT# dname = ( 'a' + dname ) #NEWLINE# ( self . domain , create ) = Domain . objects . get_or_create ( name = server ) #NEWLINE# #UNINDENT# server = random_label ( ) #NEWLINE# ( self . test_obj , create ) = Nameserver . objects . get_or_create ( server = server , domain = self . domain ) #NEWLINE# while ( not create ) : #NEWLINE# #INDENT# server = ( 'a' + server ) #NEWLINE# ( self . test_obj , create ) = Nameserver . objects . get_or_create ( server = server , domain = self . domain )