1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pyinventory_ynh.git synced 2024-09-03 20:16:09 +02:00
pyinventory_ynh/tests/test_utils.py

9 lines
284 B
Python
Raw Normal View History

2020-12-29 13:58:51 +01:00
from unittest.case import TestCase
from django_yunohost_integration.test_utils import generate_basic_auth
2020-12-29 13:58:51 +01:00
class TestUtilsTestCase(TestCase):
def test_generate_basic_auth(self):
assert generate_basic_auth(username='test', password='test123') == 'basic dGVzdDp0ZXN0MTIz'