'Check that is_pointer_tag works properly.'

def test_is_pointer_tag(self):

    yes = ['<html    url_name="blah"/>', '<html    url_name="blah"></html>', '<html    url_name="blah">                </html>', '<problem    url_name="blah"/>', '<course    org="HogwartsX"    course="Mathemagics"    url_name="3.14159"/>']
    no = ['<html    url_name="blah"    also="this"/>', '<html    url_name="blah">some    text</html>', '<problem    url_name="blah"><sub>tree</sub></problem>', '<course    org="HogwartsX"    course="Mathemagics"    url_name="3.14159">\n                                                                                    <chapter>3</chapter>\n                                                                        </course>\n                                                        ']
    for xml_str in yes:
        print 'should    be    True    for    {0}'.format(xml_str)
        self.assertTrue(is_pointer_tag(etree.fromstring(xml_str)))
    for xml_str in no:
        print 'should    be    False    for    {0}'.format(xml_str)
        self.assertFalse(is_pointer_tag(etree.fromstring(xml_str)))
