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