'Test that mail_admins/mail_managers doesn\'t connect to the mail server
if there are no recipients (#9383)'

@with_django_settings(ADMINS=(), MANAGERS=())
def test_empty_admins(self):

    mail_admins('hi', 'there')
    self.assertEqual(self.get_mailbox_content(), [])
    mail_managers('hi', 'there')
    self.assertEqual(self.get_mailbox_content(), [])
