Mercurial > hgrepos > Python > libs > ConfigMix
comparison tests/test.py @ 355:260354e9a7f9
Avoid DeprecationWarning: assertEquals() -> assertEqual()
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 24 Jun 2021 20:26:33 +0200 |
| parents | 2b209bdf6995 |
| children | a5c792074ec9 |
comparison
equal
deleted
inserted
replaced
| 354:bd28fb4565e1 | 355:260354e9a7f9 |
|---|---|
| 413 self.assertIsNone(x) | 413 self.assertIsNone(x) |
| 414 | 414 |
| 415 def test09_None_filter_embedded(self): | 415 def test09_None_filter_embedded(self): |
| 416 cfg = self._load() | 416 cfg = self._load() |
| 417 x = cfg.expand_variable("A{{non-existing|None}}Z") | 417 x = cfg.expand_variable("A{{non-existing|None}}Z") |
| 418 self.assertEquals("AZ", x) | 418 self.assertEqual("AZ", x) |
| 419 | 419 |
| 420 def test10_Empty_filtersingle(self): | 420 def test10_Empty_filtersingle(self): |
| 421 cfg = self._load() | 421 cfg = self._load() |
| 422 x = cfg.expand_variable("{{non-existing|Empty}}") | 422 x = cfg.expand_variable("{{non-existing|Empty}}") |
| 423 self.assertEquals("", x) | 423 self.assertEqual("", x) |
| 424 | 424 |
| 425 | 425 |
| 426 class T02LoadAndMerge(_T02MixinLoadAndMerge, unittest.TestCase): | 426 class T02LoadAndMerge(_T02MixinLoadAndMerge, unittest.TestCase): |
| 427 | 427 |
| 428 def setUp(self): | 428 def setUp(self): |
