def testExportFilter(self):
        c = Client()
        c.login(**{'username': 'test', 'password': 'foobar'})

        # initially nothing
        self.assertEqual(404, get_export_response(c).status_code)

        # submit, assert something
        f = get_form()
        _submit_form(f)
        resp = get_export_response(c)
        self.assertEqual(200, resp.status_code)
        initial_content = _content(resp)
        
        # resubmit, assert same since it's a dupe
        _submit_form(f)
        resp = get_export_response(c)
        self.assertEqual(200, resp.status_code)
        # hack: check for the number of rows to ensure the new one 
        # didn't get added. They aren't exactly the same because the
        # duplicate adds to the schema.
        content = _content(resp)
        self.assertEqual(initial_content.count("<tr>"), 
                         content.count("<tr>"))
        
        # unless we explicitly include errors
        resp = get_export_response(c, include_errors=True)
        self.assertEqual(200, resp.status_code)
        self.assertTrue(len(initial_content) > len(_content(resp)))
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/reports/tests/test_export_api.py/ExportTest.testExportFilter/swapped operands of `>`