diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-09 18:19:09 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-09 18:19:09 -0400 |
commit | 3cc502a0b46d7771d713aa628475b5552a62f15e (patch) | |
tree | 48bdeafbb804ba85e95b042540f832a64ef01d4f /tests/tests.py | |
parent | 460256566c776a8a4f3db71de734049f6dd5baa2 (diff) | |
download | third_party-cobbler-3cc502a0b46d7771d713aa628475b5552a62f15e.tar.gz third_party-cobbler-3cc502a0b46d7771d713aa628475b5552a62f15e.tar.xz third_party-cobbler-3cc502a0b46d7771d713aa628475b5552a62f15e.zip |
In XMLRPC, dicts must have string keys, so changing NIC storage to be XMLRPC-friendly.
Diffstat (limited to 'tests/tests.py')
-rw-r--r-- | tests/tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tests.py b/tests/tests.py index bb03138..3be4911 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -136,8 +136,10 @@ class MultiNIC(BootTest): # now check one interface to make sure it's exactly right # and we didn't accidentally fill in any other fields elsewhere + + self.assertTrue(system.interfaces.has_key("4")) for (name,intf) in system.interfaces.iteritems(): - if name == 4: + if name == "4": # xmlrpc dicts must have string keys, so we must also self.assertTrue(intf["gateway"] == "192.168.1.25") self.assertTrue(intf["virt_bridge"] == "zero") self.assertTrue(intf["subnet"] == "255.255.255.0") |