Exemplo n.º 1
0
 def test_returns_url_safe_string(self):
     self.assertEquals(
         safe_url('Alternative/Indie/rock/pop '),
         'Alternative%2FIndie%2Frock%2Fpop+')
     self.assertEquals(
         safe_url('D∃∃P Hau⑀ iNDiE DᴬNCE | №➊ ²⁰¹⁴'),
         'DP+Hau+iNDiE+DANCE+%7C+No+2014')
Exemplo n.º 2
0
def new_folder(name, path):
    return models.Ref.directory(
        uri=generate_uri(path),
        name=safe_url(name)
    )
Exemplo n.º 3
0
def new_folder(name, path):
    return models.Ref.directory(uri=generate_uri(path), name=safe_url(name))
Exemplo n.º 4
0
 def test_returns_url_safe_string(self):
     self.assertEquals(safe_url('Alternative/Indie/rock/pop '),
                       'Alternative%2FIndie%2Frock%2Fpop+')
     self.assertEquals(safe_url('D∃∃P Hau⑀ iNDiE DᴬNCE | №➊ ²⁰¹⁴'),
                       'DP+Hau+iNDiE+DANCE+%7C+No+2014')
Exemplo n.º 5
0
 def test_returns_url_safe_string(self):
     assert (safe_url("Alternative/Indie/rock/pop ") ==
             "Alternative%2FIndie%2Frock%2Fpop+")
     assert (safe_url("D∃∃P Hau⑀ iNDiE DᴬNCE | №➊ ²⁰¹⁴") ==
             "DP+Hau+iNDiE+DANCE+%7C+No+2014")