This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author karlcow
Recipients Julian.Gindi, ajitesh.gupta, karlcow, python-dev, r.david.murray, serhiy.storchaka, zach.ware
Date 2021-01-07.05:55:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609998930.22.0.922867942603.issue19683@roundup.psfhosted.org>
In-reply-to
Content
@zach.ware 
@r.david.murray

I'm going through the source currently. 

I see that the test file is using:

class MinidomTest(unittest.TestCase):
    def confirm(self, test, testname = "Test"):
        self.assertTrue(test, testname)


Is there a specific reason to use this form instead of just directly using self.assertEqual or similar forms for new tests or reorganizing some of the tests. 


I see that it is used for example for giving a testname but

    def testAAA(self):
        dom = parseString("<abc/>")
        el = dom.documentElement
        el.setAttribute("spam", "jam2")
        self.confirm(el.toxml() == '<abc spam="jam2"/>', "testAAA")


testAAA is not specifically helping. :)
History
Date User Action Args
2021-01-07 05:55:30karlcowsetrecipients: + karlcow, r.david.murray, python-dev, zach.ware, serhiy.storchaka, Julian.Gindi, ajitesh.gupta
2021-01-07 05:55:30karlcowsetmessageid: <1609998930.22.0.922867942603.issue19683@roundup.psfhosted.org>
2021-01-07 05:55:30karlcowlinkissue19683 messages
2021-01-07 05:55:29karlcowcreate