Exemplo n.º 1
0
 def supports_2_digit_slug_suffixes(self):
     assert_equal(slugify_uniquely('This', self.Model, 5), 'th-11')
Exemplo n.º 2
0
 def doesnt_truncate_short_strings(self):
     assert_equal(slugify_uniquely('Surprise!', self.Model, 20),
                  'surprise-4')
Exemplo n.º 3
0
 def increments_slug_suffix(self):
     assert_equal(slugify_uniquely('This is another Test', self.Model, 15),
                  'this-is-anoth-4')
Exemplo n.º 4
0
 def truncates_long_strings(self):
     assert_equal(slugify_uniquely('This is a Test', self.Model, 12),
                  'this-is-a-te')
 def supports_2_digit_slug_suffixes (self):
     assert_equal(
         slugify_uniquely('This', self.Model, 5),
         'th-11'
     )
 def increments_slug_suffix (self):
     assert_equal(
         slugify_uniquely('This is another Test', self.Model, 15),
         'this-is-anoth-4'
     )
 def doesnt_truncate_short_strings (self):
     assert_equal(
         slugify_uniquely('Surprise!', self.Model, 20),
         'surprise-4'
     )
 def truncates_long_strings (self):
     assert_equal(
         slugify_uniquely('This is a Test', self.Model, 12),
         'this-is-a-te'
     )