django-fritzconnection_ynh/tests/test_utils.py

9 lines
284 B
Python
Raw Normal View History

2022-04-02 17:44:57 +02:00
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'