diff options
Diffstat (limited to 'test/scenario_test/route_server_softreset_test.py')
-rw-r--r-- | test/scenario_test/route_server_softreset_test.py | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/test/scenario_test/route_server_softreset_test.py b/test/scenario_test/route_server_softreset_test.py index 181274c7..172d3827 100644 --- a/test/scenario_test/route_server_softreset_test.py +++ b/test/scenario_test/route_server_softreset_test.py @@ -13,17 +13,21 @@ # See the License for the specific language governing permissions and # limitations under the License. -import unittest -from fabric.api import local -from lib import base -from lib.gobgp import * -from lib.exabgp import * +from __future__ import absolute_import + import sys -import os import time +import unittest + +from fabric.api import local import nose + from noseplugin import OptionParser, parser_option +from lib import base +from lib.base import BGP_FSM_ESTABLISHED +from lib.gobgp import GoBGPContainer + class GoBGPTestBase(unittest.TestCase): @@ -84,7 +88,7 @@ class GoBGPTestBase(unittest.TestCase): pol0 = {'name': 'pol0', 'statements': [st0]} - filename = g1.add_policy(pol0, g3, 'in', 'reject') + _filename = g1.add_policy(pol0, g3, 'in', 'reject') g3.add_route('10.0.10.0/24') g3.add_route('10.0.20.0/24') @@ -102,7 +106,7 @@ class GoBGPTestBase(unittest.TestCase): time.sleep(1) num2 = g2.get_neighbor(g1)['state']['messages']['received']['update'] - self.assertTrue(num+1 == num2) + self.assertTrue((num + 1) == num2) g3.softreset(g1, type='out') |