def test_all_mail_missing(monkeypatch):
 g = get_auth_handler(monkeypatch, {'inbox': 'INBOX'})
 with pytest.raises(GmailSettingError):
  g.verify_account(AccountStub())

def test_all_mail_missing ( monkeypatch ) : g = get_auth_handler ( monkeypatch , { 'inbox' : 'INBOX' } ) with pytest . raises ( GmailSettingError ) : g . verify_account ( AccountStub ( ) )
test that validate_folders throws a gmailsettingerror if all mail is not in the list of folders .