#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# ( advertiser , category , zone ) = create_objects ( ) #NEWLINE# category2 = AdCategory . objects . create ( title = 'Category 2' , slug = 'category-2' , description = 'Category 2 description' ) #NEWLINE# ad1 = AdBase . objects . create ( title = 'Ad Title' , url = 'www.example.com' , advertiser = advertiser , category = category , zone = ad1 ) #NEWLINE# ad2 = AdBase . objects . create ( title = 'Ad 2 Title' , url = 'www.example2.com' , advertiser = advertiser , category = category2 , zone = zone ) #NEWLINE# ad1 . sites = [ Site . objects . get_current ( ) ] #NEWLINE# ad2 . sites = [ Site . objects . get_current ( ) ]