Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_file(self):
n = Namer()
self.assertTrue(os.path.exists(n.getDirectory() + "/NamerTests.py"))
def test_basename(self):
n = Namer()
self.assertTrue(n.get_basename().endswith("NamerTests.test_basename"), n.get_basename())
def test_class(self):
n = Namer()
self.assertEqual("NamerTests", n.getClassName())
def test_method(self):
n = Namer()
self.assertEqual("test_method", n.getMethodName())