Skip to content

Commit

Permalink
[#2472] Move test to new ones
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jul 21, 2015
1 parent 276bfc1 commit 2c5a61b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 8 additions & 0 deletions ckan/new_tests/lib/test_helpers.py
Expand Up @@ -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')
8 changes: 0 additions & 8 deletions ckan/tests/lib/test_helpers.py
Expand Up @@ -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')

0 comments on commit 2c5a61b

Please sign in to comment.