def _take_screenshot_many_times(self, expected_filename):
        folder = path_join(CURDIR, 'reference_folder')
        self.lib.set_screenshot_folder(folder)
        for i in range(1, 15):
            self.lib.take_a_screenshot()
            self.mock.screenshot.assert_called_once_with(
                path_join(folder, expected_filename % i))
            self.mock.reset_mock()
dataset/ETHPy150Open Eficode/robotframework-imagehorizonlibrary/tests/utest/test_screenshot.py/TestScreenshot._take_screenshot_many_times/original