diff options
Diffstat (limited to 'regress/sbin')
-rw-r--r-- | regress/sbin/slaacd/process_ra.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/regress/sbin/slaacd/process_ra.py b/regress/sbin/slaacd/process_ra.py index 13cd155b06c..5ee501b95f5 100644 --- a/regress/sbin/slaacd/process_ra.py +++ b/regress/sbin/slaacd/process_ra.py @@ -38,6 +38,14 @@ class TestRouterAdvertisementParsing(unittest.TestCase): self.assertEqual(len( slaac_show_interface.def_router_proposals), 1) + def test_number_rdns_proposals(self): + self.assertEqual(len( + slaac_show_interface.rdns_proposals), 1) + + def test_number_rdns_proposals_rnds(self): + self.assertEqual(len( + slaac_show_interface.rdns_proposals[0]['rdns']), 2) + if __name__ == '__main__': suite = unittest.TestLoader().loadTestsFromTestCase( TestRouterAdvertisementParsing) |