How to use the approvaltests.Namer.Namer function in approvaltests

To help you get started, we’ve selected a few approvaltests examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github approvals / ApprovalTests.Python / src / NamerTests.py View on Github external
def test_file(self):
        n = Namer()
        self.assertTrue(os.path.exists(n.getDirectory() + "/NamerTests.py"))
github approvals / ApprovalTests.Python / src / NamerTests.py View on Github external
def test_basename(self):
        n = Namer()
        self.assertTrue(n.get_basename().endswith("NamerTests.test_basename"), n.get_basename())
github approvals / ApprovalTests.Python / src / NamerTests.py View on Github external
def test_class(self):
        n = Namer()
        self.assertEqual("NamerTests", n.getClassName())
github approvals / ApprovalTests.Python / src / NamerTests.py View on Github external
def test_method(self):
        n = Namer()
        self.assertEqual("test_method", n.getMethodName())