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