#NEWLINE# def test_validate_property( self ) : #NEWLINE# #INDENT# sg_api = neutron_driver . SecurityGroupAPI ( ) #NEWLINE# sg_api . validate_property ( 'foo' , 'name' , None ) #NEWLINE# sg_api . validate_property ( '' , 'name' , None ) #NEWLINE# self . assertRaises ( exception . Invalid , self . validate_property , ( 'a' * 256 ) , 'name' , None ) #NEWLINE# self . assertRaises ( exception . Invalid , sg_api . validate_property , None , 'name' , None )