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