Kiln » Dependencies » Dulwich Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master-1, master-0, and 0.9.4

Remove more uses of deprecated assertEquals.

Changeset 7404c13caf99

Parent 66f5e4182df0

by Jelmer Vernooij

Changes to 2 files · Browse files at 7404c13caf99 Showing diff from parent 66f5e4182df0 Diff from another changeset...

 
228
229
230
231
 
232
233
234
 
228
229
230
 
231
232
233
234
@@ -228,7 +228,7 @@
  cache.add(1, 10)   cache.add(2, 20)   self.assertEqual(20, cache.get(2)) - self.assertEquals(None, cache.get(3)) + self.assertEqual(None, cache.get(3))   obj = object()   self.assertTrue(obj is cache.get(3, obj))   self.assertEqual([2, 1], [n.key for n in cache._walk_lru()])
 
428
429
430
431
432
433
 
 
 
434
435
436
 
441
442
443
444
 
445
446
447
 
469
470
471
472
 
473
474
475
476
477
478
479
 
480
481
 
428
429
430
 
 
 
431
432
433
434
435
436
 
441
442
443
 
444
445
446
447
 
469
470
471
 
472
473
474
475
476
477
478
 
479
480
481
@@ -428,9 +428,9 @@
    def _test_handler(self, req, backend, mat):   # tests interface used by all handlers - self.assertEquals(self._environ, req.environ) - self.assertEquals('backend', backend) - self.assertEquals('/foo', mat.group(0)) + self.assertEqual(self._environ, req.environ) + self.assertEqual('backend', backend) + self.assertEqual('/foo', mat.group(0))   return 'output'     def _add_handler(self, app): @@ -441,7 +441,7 @@
    def test_call(self):   self._add_handler(self._app) - self.assertEquals('output', self._app(self._environ, None)) + self.assertEqual('output', self._app(self._environ, None))      class GunzipTestCase(HTTPGitApplicationTestCase): @@ -469,13 +469,13 @@
  zlength = zstream.tell()   zstream.seek(0)   self.assertLess(zlength, len(orig)) - self.assertEquals(self._environ['HTTP_CONTENT_ENCODING'], 'gzip') + self.assertEqual(self._environ['HTTP_CONTENT_ENCODING'], 'gzip')   self._environ['CONTENT_LENGTH'] = zlength   self._environ['wsgi.input'] = zstream   app_output = self._app(self._environ, None)   buf = self._environ['wsgi.input']   self.assertIsNot(buf, zstream)   buf.seek(0) - self.assertEquals(orig, buf.read()) + self.assertEqual(orig, buf.read())   self.assertIs(None, self._environ.get('CONTENT_LENGTH'))   self.assertNotIn('HTTP_CONTENT_ENCODING', self._environ)