本文整理汇总了Python中gaiatest.apps.email.app.Email.delete_email_account方法的典型用法代码示例。如果您正苦于以下问题:Python Email.delete_email_account方法的具体用法?Python Email.delete_email_account怎么用?Python Email.delete_email_account使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.email.app.Email
的用法示例。
在下文中一共展示了Email.delete_email_account方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestSetupGmail
# 需要导入模块: from gaiatest.apps.email.app import Email [as 别名]
# 或者: from gaiatest.apps.email.app.Email import delete_email_account [as 别名]
class TestSetupGmail(GaiaTestCase):
email_configured = False
def setUp(self):
GaiaTestCase.setUp(self)
self.connect_to_network()
self.email = Email(self.marionette)
self.email.launch()
def test_setup_basic_gmail(self):
# setup basic gmail account
self.email.basic_setup_email(self.testvars['email']['gmail']['name'],
self.testvars['email']['gmail']['email'],
self.testvars['email']['gmail']['password'])
self.email_configured = True
# check header area
self.assertTrue(self.email.header.is_compose_visible)
self.assertTrue(self.email.header.is_menu_visible)
self.assertEqual(self.email.header.label, 'Inbox')
# check toolbar area
self.assertTrue(self.email.toolbar.is_edit_visible)
self.assertTrue(self.email.toolbar.is_refresh_visible)
# check account has emails
self.email.wait_for_emails_to_sync()
self.assertGreater(len(self.email.mails), 0)
def tearDown(self):
if self.email_configured:
self.email.delete_email_account(0)
GaiaTestCase.tearDown(self)