Skip to content

Commit

Permalink
fix the test code for the change of specification about the decision …
Browse files Browse the repository at this point in the history
…of main interface
  • Loading branch information
ike-dai committed Dec 5, 2013
1 parent 6ff0dea commit 4d0151b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ def test_addresses_to_interfaces(self):
{"type": 2, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 161, "main": 1}]},
# two addresses
{"params": {"addresses": ["127.0.0.1", "localhost.localdomain"]},
"expect": [{"type": 1, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 10050, "main": 1},
{"type": 2, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 161, "main": 1},
{"type": 1, "useip": 0, "ip": "", "dns": "localhost.localdomain", "port": 10050, "main": 0},
{"type": 2, "useip": 0, "ip": "", "dns": "localhost.localdomain", "port": 161, "main": 0}]},
"expect": [{"type": 1, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 10050, "main": 0},
{"type": 2, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 161, "main": 0},
{"type": 1, "useip": 0, "ip": "", "dns": "localhost.localdomain", "port": 10050, "main": 1},
{"type": 2, "useip": 0, "ip": "", "dns": "localhost.localdomain", "port": 161, "main": 1}]},
# one address with interface_types
{"params": {"addresses": ["127.0.0.1"], "interface_types": [1]},
"expect": [{"type": 1, "useip": 1, "ip": "127.0.0.1", "dns": "", "port": 10050, "main": 1}]},
Expand Down

0 comments on commit 4d0151b

Please sign in to comment.