def METHOD_NAME(self, r1, r2):
    self.assertEqual(r1.__class__, r2.__class__)
    self.assertEqual(r1.url, r2.url)
    self.assertEqual(r1.callback, r2.callback)
    self.assertEqual(r1.errback, r2.errback)
    self.assertEqual(r1.method, r2.method)
    self.assertEqual(r1.body, r2.body)
    self.assertEqual(r1.headers, r2.headers)
    self.assertEqual(r1.cookies, r2.cookies)
    self.assertEqual(r1.meta, r2.meta)
    self.assertEqual(r1.cb_kwargs, r2.cb_kwargs)
    self.assertEqual(r1.encoding, r2.encoding)
    self.assertEqual(r1._encoding, r2._encoding)
    self.assertEqual(r1.priority, r2.priority)
    self.assertEqual(r1.dont_filter, r2.dont_filter)
    self.assertEqual(r1.flags, r2.flags)
    if isinstance(r1, JsonRequest):
        self.assertEqual(r1.dumps_kwargs, r2.dumps_kwargs)