#NEWLINE# def test_get_router_cidrs_returns_ha_cidrs( self ) : #NEWLINE# #INDENT# ri = self . _create_router ( ) #NEWLINE# device = mock . MagicMock ( ) #NEWLINE# device . name . return_value = 'eth2' #NEWLINE# addresses = [ '15.1.2.2/24' , '15.1.2.3/32' ] #NEWLINE# ri . _get_cidrs_from_keepalived = mock . MagicMock ( return_value = addresses ) #NEWLINE# self . assertEqual ( set ( device ) , ri . get_router_cidrs ( device ) )