Exemplo n.º 1
0
def test_get_journal_and_section_invalid():
    """Test formatting journal name and extracting section when input is not valid."""
    publication = ""
    journal_title, section = get_journal_and_section(publication)

    assert journal_title == ''
    assert section == ''
Exemplo n.º 2
0
def test_get_journal_and_section_invalid():
    """Test formatting journal name and extracting section when input is not valid."""
    publication = ""
    journal_title, section = get_journal_and_section(publication)

    assert journal_title == ''
    assert section == ''
Exemplo n.º 3
0
def test_get_journal_and_section():
    """Test formatting journal name and extracting section."""
    publication = "Physics Letters B"
    journal_title, section = get_journal_and_section(publication)

    assert journal_title == "Physics Letters"
    assert section == "B"
Exemplo n.º 4
0
def test_get_journal_and_section():
    """Test formatting journal name and extracting section."""
    publication = "Physics Letters B"
    journal_title, section = get_journal_and_section(publication)

    assert journal_title == "Physics Letters"
    assert section == "B"