Beispiel #1
0
def assert_expansion(template, fields, expected):
    eq_(expand(template, fields), expected)
Beispiel #2
0
def assert_expansion(template, fields, expected):
    eq_(expand(template, fields), expected)
Beispiel #3
0
 def expand(self, variables=None):
     return url.URL(expand(self._base, variables))
Beispiel #4
0
def test_unicode():
    expand('{/name}', {'name': u'⚐ hello'})
Beispiel #5
0
def assert_expansion(template, fields, expected):
    assert expand(template, fields) == expected
Beispiel #6
0
 def expand(self, variables=None):
     return url.URL(expand(self._base, variables))