mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-28 14:22:01 +00:00
13 lines
315 B
Python
13 lines
315 B
Python
""" 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"))
|