def test_with_locale(self): """Passing a locale to url creates a URL for that locale.""" u = url('jsi18n', locale='es') eq_(u'/es/jsi18n/', u)