8 lines
330 B
Python
8 lines
330 B
Python
import unittest
|
|
from trustcafeapiwrapper.utils.get_user_slug_from_path import get_user_slug_from_path
|
|
|
|
class TestGetUserSlugFromPath(unittest.TestCase):
|
|
def test_get_user_slug_from_path(self):
|
|
|
|
# Test with a valid user path
|
|
self.assertEqual(get_user_slug_from_path('/user/johndoe'), 'johndoe')
|