diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-06-25 12:27:00 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2014-06-26 15:26:37 +0200 |
commit | 57d26e626570300b2fef53a9178286a87fdaae54 (patch) | |
tree | 8297db8dac02a01e3cb0a6496382733b22a2d4ac /tests/xmlparse.py | |
parent | 72d0d5d8ea634896d793eedeea7234ee7478719d (diff) | |
download | virt-manager-57d26e626570300b2fef53a9178286a87fdaae54.tar.gz |
virtinst: parse "bandwith" node in network definition
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'tests/xmlparse.py')
-rw-r--r-- | tests/xmlparse.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/xmlparse.py b/tests/xmlparse.py index 0295d60f..f16295e0 100644 --- a/tests/xmlparse.py +++ b/tests/xmlparse.py @@ -1143,6 +1143,15 @@ class XMLParseTest(unittest.TestCase): check("mode", "nat", "route") check("dev", None, "eth22") + check = self._make_checker(net.bandwidth) + check("inbound_average", "1000", "3000") + check("inbound_peak", "5000", "4000") + check("inbound_burst", "5120", "5220") + check("inbound_floor", None, None) + check("outbound_average", "1000", "2000") + check("outbound_peak", "5000", "3000") + check("outbound_burst", "5120", "5120") + self.assertEquals(len(net.portgroups), 2) check = self._make_checker(net.portgroups[0]) check("name", "engineering", "foo") |