Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_initials_regex_2():
"""Test - uppercase initials regex with A.B."""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('A.B.')) is True
def test_initials_regex():
"""Test - uppercase initals regex with A.B"""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('A.B')) is True
def test_initials_regex_2():
"""Test - uppercase initals regex with A.B."""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('A.B.')) is True
def test_initials_regex_3():
"""Test - uppercase initals regex with ABCD"""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('ABCD')) is False
def test_initials_regex():
"""Test - uppercase initals regex with A.B"""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('A.B')) is True
def test_initials_regex():
"""Test - uppercase initials regex with A.B"""
from titlecase import UC_INITIALS
assert bool(UC_INITIALS.match('A.B')) is True