'Reported by one of our partners. The issue seems to be that there are
too many variants being generated.'

def test_complex_form_parse_and_variants(self):

    body = file(self.COMPLEX_FORM).read()
    resp = build_http_response(self.url, body)
    p = RaiseHTMLParser(resp)
    p.parse()
    mode = cf.cf.get('form_fuzzing_mode')
    form_params = p.forms[0]
    self.assertEqual(len([fv for fv in form_params.get_variants(mode)]), (form_params.TOP_VARIANTS + 1))
    self.assertEqual(len(form_params.meta.keys()), 31)
    self.assertEqual(form_params.meta.keys(), self.EXPECTED_PARAMS)
