コード例 #1
0
 def test_return_none_when_is_not_guest_node(self):
     self.assertIsNone(
         guest_node.get_node(
             etree.fromstring("""
         <meta_attributes>
             <nvpair name="remote-addr" value="G1"/>
         </meta_attributes>
         """)))
コード例 #2
0
 def assert_node(self, xml, expected_node):
     node = guest_node.get_node(etree.fromstring(xml))
     self.assertEquals(expected_node, (node.ring0, node.name))