def test_collapse_element_with_children(self): actual = Block._collapse_element(element=etree.fromstring( '<vrf><vrfName>COMPANY_ONE</vrfName><macVrf>true</macVrf></vrf>'), spaces=2) expected = ' <vrf>...</vrf>' self.assertEqual(expected, actual)
def test_collapse_element_with_no_children(self): actual = Block._collapse_element( element=etree.fromstring('<vrf>true</vrf>'), spaces=2) expected = ' <vrf>true</vrf>' self.assertEqual(expected, actual)