def test_taxonomy_terms_to_dicts(self):
     res = taxonomy_terms_to_dicts(
         '["http://localhost.local/converter-2",\
           "http://localhost.local/converter-1"]',
         TestConverters.normal_context)
     assert len(res) == 2, res
     assert res[0]['uri'] == 'http://localhost.local/converter-1'
     assert res[1]['uri'] == 'http://localhost.local/converter-2'
 def test_taxonomy_terms_to_dicts(self):
     res = taxonomy_terms_to_dicts(
         '["http://localhost.local/converter-2",\
           "http://localhost.local/converter-1"]',
         TestConverters.normal_context)
     assert len(res) == 2, res
     assert res[0]['uri'] == 'http://localhost.local/converter-1'
     assert res[1]['uri'] == 'http://localhost.local/converter-2'
 def test_taxonomy_terms_single_bad_json(self):
     res = taxonomy_terms_to_dicts(
         "'not really json",
         TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_single_to_dicts_fails(self):
     res = taxonomy_terms_to_dicts(
         '',
         TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_to_dicts_fails_not_found(self):
     res = taxonomy_terms_to_dicts(
         '[]',
         TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_to_dicts_fails_not_found(self):
     res = taxonomy_terms_to_dicts(
         '["http://localhost.local/converter-22"]',
         TestConverters.normal_context)
     assert len(res) == 0, res
 def test_taxonomy_terms_single_bad_json(self):
     res = taxonomy_terms_to_dicts("'not really json",
                                   TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_single_to_dicts_fails(self):
     res = taxonomy_terms_to_dicts('', TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_to_dicts_fails_not_found(self):
     res = taxonomy_terms_to_dicts('[]', TestConverters.normal_context)
     assert res is None, res
 def test_taxonomy_terms_to_dicts_fails_not_found(self):
     res = taxonomy_terms_to_dicts(
         '["http://localhost.local/converter-22"]',
         TestConverters.normal_context)
     assert len(res) == 0, res