#NEWLINE# def test_DefaultRoute( self ) : #NEWLINE# #INDENT# dr = DefaultRoute ( self . connector1 ) #NEWLINE# self . assertEqual ( dr . getRate ( ) , 0 ) #NEWLINE# self . assertEqual ( str ( dr ) , 'DefaultRoute to generic(abc) NOT RATED' ) #NEWLINE# dr = DefaultRoute ( self . connector1 , 2.3 ) #NEWLINE# self . assertEqual ( dr . getRate ( ) , 2.3 ) #NEWLINE# self . assertEqual ( str ( dr ) , 'DefaultRoute to generic(abc) rated 2.30' ) #NEWLINE# self . assertRaises ( InvalidRouteParameterError , DefaultRoute , self . connector1 , 0 ) #NEWLINE# self . assertRaises ( InvalidRouteParameterError , DefaultRoute , self . connector1 , ( - 2 ) )