def testGetOutOfRecordedFlowLoopCommandListTwoUnconsumedCommandsOnSameLines(
            self):
        loopCommandMgr = LoopCommandManager()
        sourcePathFileName = parentdir + "\\testclasses\\classloopnestedinneronefortestloopidxdic.py"
        fromClassName = 'ClassLoopNestedInnerOneForTestLoopIdxDic'
        fromMethodName = 'doB'

        with open(sourcePathFileName, "r") as f:
            contentList = f.readlines()
            methodDefLineIndex = [
                i for (i, entry) in enumerate(contentList)
                if fromMethodName in entry
            ][0]
            loopCommandMgr.storeLoopCommands(
                fromClassName, fromMethodName, methodDefLineIndex + 1,
                [contentList[methodDefLineIndex:]])

        loopCommandMgr.setLoopCommandIsOnFlow(0, fromClassName, fromMethodName,
                                              'doC2', 20)

        outOfFlowLoopCommandList = loopCommandMgr.getOutOfRecordedFlowLoopCommandList(
        )
        self.assertEqual(outOfFlowLoopCommandList, [
            [
                'ClassLoopNestedInnerOneForTestLoopIdxDic.doB->doCWithNote: 17',
                [':seqdiag_loop_start', '3 times', False]
            ],
            [
                'ClassLoopNestedInnerOneForTestLoopIdxDic.doB->doCWithNote: 17',
                [':seqdiag_loop_start', '3 times', False]
            ]
        ])
    def testGetOutOfRecordedFlowLoopCommandListNoUnconsumedCommands(self):
        loopCommandMgr = LoopCommandManager()
        sourcePathFileName = parentdir + "\\testclasses\\classloopnestedinneronefortestloopidxdic.py"
        fromClassName = 'ClassLoopNestedInnerOneForTestLoopIdxDic'
        fromMethodName = 'doB'

        with open(sourcePathFileName, "r") as f:
            contentList = f.readlines()
            methodDefLineIndex = [
                i for (i, entry) in enumerate(contentList)
                if fromMethodName in entry
            ][0]
            loopCommandMgr.storeLoopCommands(
                fromClassName, fromMethodName, methodDefLineIndex + 1,
                [contentList[methodDefLineIndex:]])

        loopCommandMgr.setLoopCommandIsOnFlow(0, fromClassName, fromMethodName,
                                              'doCWithNote', 17)
        loopCommandMgr.setLoopCommandIsOnFlow(1, fromClassName, fromMethodName,
                                              'doCWithNote', 17)

        loopCommandMgr.setLoopCommandIsOnFlow(0, fromClassName, fromMethodName,
                                              'doC2', 20)
        self.assertIsNone(loopCommandMgr.getOutOfRecordedFlowLoopCommandList())