コード例 #1
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_empty():
    with pytest.raises(TypeError):
        has_alphanumeric_last()
コード例 #2
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_white_space_in_the_middle():
    assert has_alphanumeric_last("Some title") is True
コード例 #3
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_None():
    with pytest.raises(TypeError):
        has_alphanumeric_last(None)
コード例 #4
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_empty_string():
    with pytest.raises(IndexError):
        has_alphanumeric_last("")
コード例 #5
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_period():
    assert has_alphanumeric_last("ABcD.") is False
コード例 #6
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_line_break():
    assert has_alphanumeric_last("ABcD\n") is False
コード例 #7
0
ファイル: test_ingest.py プロジェクト: BookOps-CAT/Bagel
def test_has_alphanumeric_last_poitive():
    assert has_alphanumeric_last("ABcD") is True