コード例 #1
0
def test_initials_regex_3():
    """Test - uppercase initials regex with ABCD"""
    from titlecase import UC_INITIALS
    assert bool(UC_INITIALS.match('ABCD')) is False
コード例 #2
0
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
コード例 #3
0
ファイル: tests.py プロジェクト: ixc/titlecase.py
def test_initials_regex_3():
    """Test - uppercase initals regex with ABCD"""
    from titlecase import UC_INITIALS
    assert bool(UC_INITIALS.match('ABCD')) is False
コード例 #4
0
ファイル: tests.py プロジェクト: ixc/titlecase.py
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
コード例 #5
0
ファイル: tests.py プロジェクト: zachsnow/python-titlecase
def test_initials_regex():
    """Test - uppercase initals regex with A.B"""
    from titlecase import UC_INITIALS
    return bool(UC_INITIALS.match('A.B')) is True
コード例 #6
0
ファイル: tests.py プロジェクト: zachsnow/python-titlecase
def test_initials_regex():
    """Test - uppercase initals regex with A.B"""
    from titlecase import UC_INITIALS
    return bool(UC_INITIALS.match('A.B')) is True