def test_get_extracted_emails_no_mails():
    publication_content = """
    test test test
    another test string
    lorem ipsum.
    """
    scrapper = NCBIPubScrapper()
    emails = scrapper.get_extracted_emails(publication_content)

    assert len(emails) == 0
def test_get_extracted_emails_multiple_mails():
    publication_content = """
    test test test
    [email protected]
    another test string
    [email protected], lorem ipsum.
    [email protected]
    """
    scrapper = NCBIPubScrapper()
    emails = scrapper.get_extracted_emails(publication_content)

    assert '*****@*****.**' in emails
    assert '*****@*****.**' in emails
    assert '*****@*****.**' in emails
    assert len(emails) == 3
def test_get_extracted_emails_ok(example_publication_content):
    scrapper = NCBIPubScrapper()
    emails = scrapper.get_extracted_emails(example_publication_content)

    assert '*****@*****.**' in emails