  
  
  def make_function(js, c):
      def test_func(self):
          self.assertMultiLineEqual(prepare_js_for_gettext(js), c)
      return test_func
  
  
  for i, pair in enumerate(GETTEXT_CASES):
      setattr(JsToCForGettextTest, "test_case_%d" % i, make_function(*pair))
 
</s> remove         self.assertListEqual(result, toks)
 </s> add         self.assertEqual(result, toks) </s> remove         self.assertListEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter'])
 </s> add         self.assertEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter']) </s> remove         self.assertSetEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u1})
        self.assertSetEqual({p.ewkt for p in ref_u2}, {p.ewkt for p in u2})
        self.assertSetEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u3})
 </s> add         self.assertEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u1})
        self.assertEqual({p.ewkt for p in ref_u2}, {p.ewkt for p in u2})
        self.assertEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u3}) </s> remove         self.assertListEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter'])
 </s> add         self.assertEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter']) </s> remove         self.assertListEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter'])
 </s> add         self.assertEqual([r.__class__.__name__ for r in connection_router.routers], ['TestRouter', 'WriteRouter'])
        self.assertEqual(prepare_js_for_gettext(js), c)
  
  
  def make_function(js, c):
      def test_func(self):
        self.assertEqual(prepare_js_for_gettext(js), c)
      return test_func
  
  
  for i, pair in enumerate(GETTEXT_CASES):
      setattr(JsToCForGettextTest, "test_case_%d" % i, make_function(*pair))
keep keep keep keep replace keep keep keep keep keep
 Replaced type-specific assertions with assertEqual().

Python docs say, "it's usually not necessary to invoke these methods directly." 
tests/utils_tests/test_jslex.py