コード例 #1
0
ファイル: expansion_tests.py プロジェクト: pombredanne/purl
def assert_expansion(template, fields, expected):
    eq_(expand(template, fields), expected)
コード例 #2
0
def assert_expansion(template, fields, expected):
    eq_(expand(template, fields), expected)
コード例 #3
0
 def expand(self, variables=None):
     return url.URL(expand(self._base, variables))
コード例 #4
0
def test_unicode():
    expand('{/name}', {'name': u'⚐ hello'})
コード例 #5
0
def assert_expansion(template, fields, expected):
    assert expand(template, fields) == expected
コード例 #6
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def expand(self, variables=None):
     return url.URL(expand(self._base, variables))