refactor: renamed app to lms

This commit is contained in:
Jannat Patel
2022-03-19 17:30:00 +05:30
parent 1b04615bff
commit c971d34d67
643 changed files with 227 additions and 235 deletions

17
lms/lms/test_utils.py Normal file
View File

@@ -0,0 +1,17 @@
import unittest
from .utils import slugify
class TestSlugify(unittest.TestCase):
def test_simple(self):
self.assertEquals(slugify("hello-world"), "hello-world")
self.assertEquals(slugify("Hello World"), "hello-world")
self.assertEquals(slugify("Hello, World!"), "hello-world")
def test_duplicates(self):
self.assertEquals(
slugify("Hello World", ['hello-world']),
"hello-world-2")
self.assertEquals(
slugify("Hello World", ['hello-world', 'hello-world-2']),
"hello-world-3")