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