diff --git a/ckan/new_tests/lib/test_helpers.py b/ckan/new_tests/lib/test_helpers.py index fcc336058ae..a30195cbf65 100644 --- a/ckan/new_tests/lib/test_helpers.py +++ b/ckan/new_tests/lib/test_helpers.py @@ -94,3 +94,11 @@ class UnicodeLike(unicode): strType = u''.__class__ assert result.__class__ == strType,\ '"remove_linebreaks" casts into unicode()' + + +class TestLicenseOptions(object): + def test_includes_existing_license(self): + licenses = h.license_options('some-old-license') + eq_(dict(licenses)['some-old-license'], 'some-old-license') + # and it is first on the list + eq_(licenses[0][0], 'some-old-license') diff --git a/ckan/tests/lib/test_helpers.py b/ckan/tests/lib/test_helpers.py index b8e1ed6dbd2..928d5dc34d1 100644 --- a/ckan/tests/lib/test_helpers.py +++ b/ckan/tests/lib/test_helpers.py @@ -176,11 +176,3 @@ def test_get_pkg_dict_extra(self): assert_equal(h.get_pkg_dict_extra(pkg_dict, 'extra_not_found'), None) assert_equal(h.get_pkg_dict_extra(pkg_dict, 'extra_not_found', 'default_value'), 'default_value') - - -class TestLicenseOptions(object): - def test_includes_existing_license(self): - licenses = h.license_options('some-old-license') - eq_(dict(licenses)['some-old-license'], 'some-old-license') - # and it is first on the list - eq_(licenses[0][0], 'some-old-license')