From: Diane Trout Date: Tue, 10 Jun 2014 22:10:50 +0000 (-0700) Subject: Update test_encoded test cases due to https now being the default. X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=32334c114cd489b53809070b9c857b80c43a2258 Update test_encoded test cases due to https now being the default. --- diff --git a/htsworkflow/submission/test/test_encoded.py b/htsworkflow/submission/test/test_encoded.py index 675d944..31a551d 100644 --- a/htsworkflow/submission/test/test_encoded.py +++ b/htsworkflow/submission/test/test_encoded.py @@ -13,11 +13,11 @@ class TestEncoded(TestCase): encode = ENCODED('test.encodedcc.edu') tests = [ - ('/experiments', 'http://test.encodedcc.edu/experiments'), + ('/experiments', 'https://test.encodedcc.edu/experiments'), ('/experiments/ENCLB045ZZZ', - 'http://test.encodedcc.edu/experiments/ENCLB045ZZZ'), - ('http://submit.encodedcc.edu/experiments/ENCLB045ZZZ', - 'http://submit.encodedcc.edu/experiments/ENCLB045ZZZ'), + 'https://test.encodedcc.edu/experiments/ENCLB045ZZZ'), + ('https://www.encodedcc.edu/experiments/ENCLB045ZZZ', + 'https://www.encodedcc.edu/experiments/ENCLB045ZZZ'), ] for url, result in tests: self.assertEqual(encode.prepare_url(url), result) @@ -66,7 +66,7 @@ class TestEncoded(TestCase): encode = ENCODED('test.encodedcc.org') url = encode.prepare_url(library['@id']) context = encode.create_jsonld_context(library, url) - self.assertEqual(context['@vocab'], 'http://test.encodedcc.org/profiles/library.json#') + self.assertEqual(context['@vocab'], 'https://test.encodedcc.org/profiles/library.json#') self.assertEqual(context['award'], linked_id ) self._verify_context(context, 'library') # namespaces not added yet.