django-fritzconnection_ynh/tests/test_utils.py
2022-04-02 17:44:57 +02:00

8 lines
284 B
Python

from unittest.case import TestCase
from django_yunohost_integration.test_utils import generate_basic_auth
class TestUtilsTestCase(TestCase):
def test_generate_basic_auth(self):
assert generate_basic_auth(username='test', password='test123') == 'basic dGVzdDp0ZXN0MTIz'