def test_nextTaskLevel(self):
        action = Action(MemoryLogger(), "uuid", TaskLevel(level=[1]), "sys:me")
        self.assertEqual([action._nextTaskLevel() for i in range(5)],
                         [TaskLevel(level=level) for level in
                          ([1, 1], [1, 2], [1, 3], [1, 4], [1, 5])])
Check that a directory exists and has the right path.
dataset/ETHPy150Open ClusterHQ/eliot/eliot/tests/test_action.py/ActionTests.test_nextTaskLevel--crossover with--dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/test_dbutil.py/TestUtilityFunctions.check_directory