summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-04-22 13:06:53 +0200
committerGuido Günther <agx@sigxcpu.org>2014-04-22 13:34:54 +0200
commit963efa4bebcdf8a73db0fac838cddd57492e7f06 (patch)
treef351f3e88e0cdda5fc3ed3ed6790ead86144e4de /tests
parent22aee94f7702a82e428e2915ba26cbcec209b391 (diff)
Use 'in' instead of 'has_key'
which doesn't exit in Python3
Diffstat (limited to 'tests')
-rw-r--r--tests/test_debiandistro.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_debiandistro.py b/tests/test_debiandistro.py
index a166aa8..771d1b6 100644
--- a/tests/test_debiandistro.py
+++ b/tests/test_debiandistro.py
@@ -85,7 +85,7 @@ class TestDebianDistro(unittest.TestCase):
with patch('sys.stdin', new_callable=AptPipelineMock):
pkgs = DebianDistro.read_apt_pipeline()
self.assertEqual(len(pkgs), 1)
- self.assertTrue(pkgs.has_key('pkg1'))
+ self.assertIn('pkg1', pkgs)
self.assertTrue(pkgs['pkg1'].name, 'pkg1')
@patch('apt_pkg.init')