def METHOD_NAME(name, path_name):
    """Initialize test and check the dirs were created"""
    tst = self.DummyTest("test", TestID(1, name), base_logdir=self.tmpdir.name)
    self.assertEqual(os.path.basename(tst.workdir), path_name)
    self.assertTrue(os.path.exists(tst.workdir))
    self.assertEqual(
        os.path.dirname(os.path.dirname(tst.workdir)), self.tmpdir.name
    )