def METHOD_NAME(self):
    spm = StagedPassManager(stages=["single_stage"])
    spm.single_stage = PassManager([Optimize1qGates(), Depth()])
    self.assertEqual(
        [x.__class__.__name__ for passes in spm.passes() for x in passes["passes"]],
        ["Optimize1qGates", "Depth"],
    )
    spm.single_stage.append(Unroller(["u"]))
    spm.single_stage.append(Depth())
    self.assertEqual(
        [x.__class__.__name__ for passes in spm.passes() for x in passes["passes"]],
        ["Optimize1qGates", "Depth", "Unroller", "Depth"],
    )