bookwyrm/bookwyrm/tests/test_utils.py

14 lines
315 B
Python
Raw Normal View History

2022-07-06 22:07:46 +00:00
""" test searching for books """
import re
from django.test import TestCase
from bookwyrm.utils import regex
class TestUtils(TestCase):
"""utility functions"""
def test_regex(self):
"""Regexes used throughout the app"""
self.assertTrue(re.match(regex.DOMAIN, "xn--69aa8bzb.xn--y9a3aq"))