'Run the test for each possible rerandomize value'

@ddt.data('false', 'true', RANDOMIZATION.NEVER, RANDOMIZATION.PER_STUDENT, RANDOMIZATION.ALWAYS, RANDOMIZATION.ONRESET)
def test_random_seed_with_reset_question_unsubmitted(self, rerandomize):

    def _reset_and_get_seed(module):
        "\n                                                Reset    the    XModule    and    return    the    module's    seed\n                                                "
        module.reset_problem({})
        return module.seed
    module = CapaFactory.create(rerandomize=rerandomize, done=False)
    seed = module.seed
    self.assertIsNotNone(seed)
    self.assertEqual(seed, _reset_and_get_seed(module))
