Example #1
0
 def test_spaces(self):
     self.assertEqual(get_slug('hello world'), 'hello-world')
Example #2
0
 def test_underscore(self):
     self.assertEqual(get_slug('page_with underscore'),
                      'page_with-underscore')
Example #3
0
 def test_basic(self):
     self.assertEqual(get_slug('hello'), 'hello')
Example #4
0
 def test_subdirectory(self):
     self.assertEqual(get_slug('nested/page'), 'nested/page')
Example #5
0
 def test_subdirectory_with_spaces(self):
     self.assertEqual(get_slug('nested/page with spaces'),
                      'nested/page-with-spaces')
Example #6
0
	def test_spaces(self):
		self.assertEqual(get_slug('hello world'), 'hello-world')
Example #7
0
 def test_camel_case_keep_as_is(self):
     self.assertEqual(get_slug('HelloWorld'), 'HelloWorld')
Example #8
0
	def test_basic(self):
		self.assertEqual(get_slug('hello'), 'hello')
Example #9
0
	def test_underscore(self):
		self.assertEqual(get_slug('page_with underscore'), 'page_with-underscore')
Example #10
0
	def test_subdirectory_with_spaces(self):
		self.assertEqual(get_slug('nested/page with spaces'), 'nested/page-with-spaces')
Example #11
0
	def test_subdirectory(self):
		self.assertEqual(get_slug('nested/page'), 'nested/page')
Example #12
0
	def test_camel_case_keep_as_is(self):
		self.assertEqual(get_slug('HelloWorld'), 'HelloWorld')