Skip to content

Commit

Permalink
tests: update tests to match with new utils.get_license behavior
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jansa <martin.jansa@lge.com>
  • Loading branch information
shr-project committed Sep 18, 2020
1 parent 2c086ab commit 61919e1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,25 +95,25 @@ def test_get_license(self):
ret = get_license('Apache')
self.assertEqual(ret, 'Apache')
ret = get_license('BSD-3')
self.assertEqual(ret, 'BSD')
ret = get_license('Apache-2')
self.assertEqual(ret, 'BSD-3-Clause')
ret = get_license('Apache2')
self.assertEqual(ret, 'Apache-2.0')
ret = get_license('CreativeCommons-Attribution-NonCommercial-NoDerivatives-4.0')
self.assertEqual(ret, 'CC-BY-NC-ND-4.0')
ret = get_license('CC BY-NC-SA 4.0')
self.assertEqual(ret, 'CC-BY-NC-SA-4.0')
ret = get_license('BoostSoftwareLicense Version1.0')
self.assertEqual(ret, 'Boost-1.0')
ret = get_license('GNU GPLv3')
self.assertEqual(ret, 'GPL-3')
ret = get_license('Boost Software License, Version 1.0')
self.assertEqual(ret, 'BSL-1.0')
ret = get_license('GNU GPL v3.0')
self.assertEqual(ret, 'GPL-3.0-only')
ret = get_license('Public Domain')
self.assertEqual(ret, 'public_domain')
self.assertEqual(ret, 'PD')
ret = get_license('GPL')
self.assertEqual(ret, 'GPL')
ret = get_license('GNU GENERAL PUBLIC LICENSE Version 3')
self.assertEqual(ret, 'GPL-3')
ret = get_license('GNU General Public License v2.0')
self.assertEqual(ret, 'GPL-2.0-only')
ret = get_license('GNU Lesser Public License 2.1')
self.assertEqual(ret, 'LGPL-2.1')
self.assertEqual(ret, 'LGPL-2.1-only')
ret = get_license('Mozilla Public License Version 1.1')
self.assertEqual(ret, 'MPL-1.1')
ret = get_license('Mozilla Public License')
Expand Down

0 comments on commit 61919e1

Please sign in to comment.