Commit e04f41f7 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][lib] Fix dict keys and values retrieval

parent a0c8e03d
...@@ -139,8 +139,8 @@ def test_dependencies(): ...@@ -139,8 +139,8 @@ def test_dependencies():
nose.tools.eq_(len(l.uses), 1) nose.tools.eq_(len(l.uses), 1)
nose.tools.eq_(len(l.libraries), 1) nose.tools.eq_(len(l.libraries), 1)
nose.tools.eq_(l.uses.keys()[0], 'dep1') nose.tools.eq_(list(l.uses.keys())[0], 'dep1')
nose.tools.eq_(l.uses.values()[0], 'user/dep/1') nose.tools.eq_(list(l.uses.values())[0], 'user/dep/1')
l.uses = {} #reset l.uses = {} #reset
l.uses['mod1'] = l_dep.name l.uses['mod1'] = l_dep.name
...@@ -152,8 +152,8 @@ def test_dependencies(): ...@@ -152,8 +152,8 @@ def test_dependencies():
nose.tools.eq_(len(l.uses), 1) nose.tools.eq_(len(l.uses), 1)
nose.tools.eq_(len(l.libraries), 1) nose.tools.eq_(len(l.libraries), 1)
nose.tools.eq_(l.uses.keys()[0], 'mod1') nose.tools.eq_(list(l.uses.keys())[0], 'mod1')
nose.tools.eq_(l.uses.values()[0], 'user/dep/1') nose.tools.eq_(list(l.uses.values())[0], 'user/dep/1')
l.uses = {} #reset l.uses = {} #reset
l.write() #rewrite l.write() #rewrite
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment