summaryrefslogtreecommitdiffhomepage
path: root/test/scenario_test/rtc_test.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/rtc_test.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/rtc_test.py')
-rw-r--r--test/scenario_test/rtc_test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scenario_test/rtc_test.py b/test/scenario_test/rtc_test.py
index 13bc8b25..98a91c70 100644
--- a/test/scenario_test/rtc_test.py
+++ b/test/scenario_test/rtc_test.py
@@ -38,8 +38,8 @@ class GoBGPTestBase(unittest.TestCase):
def assert_upd_count(self, src, dst, sent, received):
messages = src.get_neighbor(dst)['state']['messages']
- self.assertEqual(messages['sent']['update'], sent)
- self.assertEqual(messages['received']['update'], received)
+ self.assertEqual(messages['sent'].get('update', 0), sent)
+ self.assertEqual(messages['received'].get('update', 0), received)
@classmethod
def setUpClass(cls):