#NEWLINE# def test_dc( self ) : #NEWLINE# #INDENT# self . assertRaises ( ValueError , datacenter . Datacenter , None , 'dc-1' ) #NEWLINE# self . assertRaises ( ValueError , datacenter . Datacenter , mock . Mock ( ) , None ) #NEWLINE# dc = datacenter . Datacenter ( 'ref' , 'name' ) #NEWLINE# self . assertEqual ( 'ref' , dc . ref ) #NEWLINE# self . assertEqual ( 'name' , dc . name )