コード例 #1
0
ファイル: tests.py プロジェクト: chrishaines/ziptastic-python
 def test_build_url(self):
     version = "v42"
     endpoint = "test.endpoint"
     correct_url = "https://test.endpoint/v42/"
     self.assertEquals(correct_url, Ziptastic.build_url(endpoint, version=version))
コード例 #2
0
ファイル: tests.py プロジェクト: Ziptastic/ziptastic-python
 def test_build_url(self):
     version = 'v42'
     endpoint = 'test.endpoint'
     correct_url = 'https://test.endpoint/v42'
     eq_(correct_url, Ziptastic.build_url(endpoint, version=version))