예제 #1
0
    def test_saving_each_step(self):
        for proc_class in TEST_WAITING_PROCESSES:
            proc = proc_class()
            saver = ProcessSaver(proc)
            saver.capture()

            self.assertTrue(
                check_process_against_snapshots(self.loop, proc_class,
                                                saver.snapshots))
예제 #2
0
    def test_saving_each_step(self):
        for ProcClass in TEST_PROCESSES:
            proc = ProcClass.new()

            saver = ProcessSaver(proc)
            proc.play()

            self.assertEqual(proc.state, ProcessState.STOPPED)
            self.assertTrue(
                check_process_against_snapshots(ProcClass, saver.snapshots))
예제 #3
0
    def test_saving_each_step_interleaved(self):
        for ProcClass in test_utils.TEST_PROCESSES:
            proc = ProcClass()
            saver = test_utils.ProcessSaver(proc)
            saver.capture()

            self.assertTrue(
                test_utils.check_process_against_snapshots(
                    self.loop, ProcClass, saver.snapshots)
            )
예제 #4
0
 def test_saving_each_step(self):
     for proc_class in test_utils.TEST_PROCESSES:
         proc = proc_class()
         saver = test_utils.ProcessSaver(proc)
         saver.capture()
         self.assertEqual(proc.state, ProcessState.FINISHED)
         self.assertTrue(
             test_utils.check_process_against_snapshots(
                 self.loop, proc_class, saver.snapshots)
         )
예제 #5
0
    def test_saving_each_step_interleaved(self):
        for ProcClass in TEST_PROCESSES:
            proc = ProcClass.new()
            ps = ProcessSaver(proc)
            try:
                proc.play()
            except BaseException:
                pass

            self.assertTrue(
                check_process_against_snapshots(ProcClass, ps.snapshots))
예제 #6
0
    def test_saving_each_step(self):
        for ProcClass in TEST_WAITING_PROCESSES:
            proc = ProcClass.new()
            saver = ProcessSaver(proc)
            try:
                proc.play()
            except BaseException:
                pass

            self.assertTrue(
                check_process_against_snapshots(ProcClass, saver.snapshots))