summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/route_server_test2.py
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-10 14:06:08 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-08-08 21:24:48 +0900
commit71e56c542e6a167dc3cd983aae2881a3c24c162a (patch)
treea449e3ed0889940fe47bb5f4ffca91228a4cc7e8 /test/scenario_test/route_server_test2.py
parent3dc23d3075f13f2976afd255ef2fd9b1410acc77 (diff)
rpc cleanup
- clean up RPC function names - rewrite gobgp command to use the api instead of config package - delete unused client package Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/route_server_test2.py')
-rw-r--r--test/scenario_test/route_server_test2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/scenario_test/route_server_test2.py b/test/scenario_test/route_server_test2.py
index 61c546b8..3bbfeada 100644
--- a/test/scenario_test/route_server_test2.py
+++ b/test/scenario_test/route_server_test2.py
@@ -89,10 +89,10 @@ class GoBGPTestBase(unittest.TestCase):
def test_04_withdraw_path(self):
self.clients['g2'].local('gobgp global rib del 10.0.0.0/24')
time.sleep(1)
- info = self.gobgp.get_neighbor(self.clients['g2'])['state']['adj-table']
- self.assertTrue(info['advertised'] == 1)
- self.assertTrue('accepted' not in info) # means info['accepted'] == 0
- self.assertTrue('received' not in info) # means info['received'] == 0
+ s = self.gobgp.get_neighbor(self.clients['g2'])['state']
+ self.assertTrue(s.get('advertised', 0) == 1)
+ self.assertTrue(s.get('accepted') == None) # means info['accepted'] == 0
+ self.assertTrue(s.get('received') == None) # means info['received'] == 0
if __name__ == '__main__':