Esempio 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 == ''
Esempio 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 == ''
Esempio 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"
Esempio 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"