Ejemplo n.º 1
0
    def test_init_no_xml_element(self):
        """
        Tests the class constructor from an empty instance
        """

        idref = 'usgcb-rhel5desktop-rule-2.1.1.1.1.a'
        xccdf_select = Select(idref=idref)

        self.assertEqual(xccdf_select.name, 'select',
                         'select tag name does not match')

        self.assertEqual(xccdf_select.idref, idref,
                         'select idref does not match')

        self.assertFalse(xccdf_select.is_selected())