Skip to content

Commit ca2a399

Browse files
committed
[rospack.py] Added a test for the expected value (#133 (comment)).
1 parent e813c8b commit ca2a399

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_rospkg_catkin_packages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ def test_licenses():
7373
def test_get_licenses():
7474
"""Check licenses from all packages in the dependency chain"""
7575
rospack = rospkg.rospack.RosPack(ros_paths=[search_path])
76+
licenses_list = [None, "MIT", "BSD", "LGPL"] # Licenses of 'bar and 'foo'. License for some deps are undetermined so 'None'.
7677
licenses = rospack.get_licenses("bar", implicit=True)
7778
assert("MIT" in licenses)
7879
assert("BSD" in licenses)
7980
assert("LGPL" in licenses)
81+
assert(set(licenses) == set(licenses_list))

0 commit comments

Comments
 (0)