async def test_usps_exception(hass, mock_imap_usps_exception):
    result = get_count(mock_imap_usps_exception, "usps_exception", False, "./", hass)
    assert result["count"] == 1
async def test_royal_out_for_delivery(hass, mock_imap_royal_out_for_delivery):
    result = get_count(
        mock_imap_royal_out_for_delivery, "royal_delivering", True, "./", hass
    )
    assert result["count"] == 1
    assert result["tracking"] == ["MA038501234GB"]
async def test_hermes_out_for_delivery(hass, mock_imap_hermes_out_for_delivery):
    result = get_count(
        mock_imap_hermes_out_for_delivery, "hermes_delivering", True, "./", hass
    )
    assert result["count"] == 1
    assert result["tracking"] == ["8888888888888888"]
async def test_dhl_out_for_delivery(hass, mock_imap_dhl_out_for_delivery):
    result = get_count(
        mock_imap_dhl_out_for_delivery, "dhl_delivering", True, "./", hass
    )
    assert result["count"] == 1
    assert result["tracking"] == ["4212345678"]
async def test_usps_out_for_delivery(hass, mock_imap_usps_out_for_delivery):
    result = get_count(
        mock_imap_usps_out_for_delivery, "usps_delivering", True, "./", hass
    )
    assert result["count"] == 1
    assert result["tracking"] == ["921234565085773077766900"]
async def test_ups_out_for_delivery(hass, mock_imap_ups_out_for_delivery):
    result = get_count(
        mock_imap_ups_out_for_delivery, "ups_delivering", True, "./", hass
    )
    assert result["count"] == 2