當前位置: 首頁>>代碼示例>>Python>>正文


Python base.Base類代碼示例

本文整理匯總了Python中commands.base.Base的典型用法代碼示例。如果您正苦於以下問題:Python Base類的具體用法?Python Base怎麽用?Python Base使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Base類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_org_delete

 def test_org_delete(self):
     new_org_name = "Org%s" % Base.random_string()
     out,err = Org.org_delete(new_org_name)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_org.py

示例2: test_activation_key_delete

    def test_activation_key_delete(self):
        new_org_name = "Org%s" % Base.random_string()
	new_activation_key = "act%s" % Base.random_string()
        out,err = Activation_key.activation_key_delete(new_org_name,new_activation_key)
        Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_activation_key.py

示例3: test_system_update_sysname_missing

 def test_system_update_sysname_missing(self):
     new_org_name = "Org%s" % Base.random_string()
     #new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_update_sysname_missing(new_org_name)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --name option requires an argument\n")
開發者ID:tkolhar,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_systems.py

示例4: test_system_subscriptions

 def test_system_subscriptions(self):
     new_org_name = "Org%s" % Base.random_string()
     new_sys_name  = "Sys%s" % Base.random_string()
     out,err = System.system_subscriptions(new_org_name,new_sys_name)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_systems.py

示例5: test_system_facts

 def test_system_facts(self):
     #system = System()
     new_org_name = "Org%s" % Base.random_string()
     new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_facts(new_org_name,new_sys_name)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:6,代碼來源:test_cli_systems.py

示例6: test_permission_delete

    def test_permission_delete(self):
        new_user_role = "role%s" % Base.random_string()
        new_perm_name = "permission%s" % Base.random_string()
	out,err = Permission.permission_delete(new_user_role,new_perm_name)
	Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_permission.py

示例7: test_system_unregister_org_not_provided

 def test_system_unregister_org_not_provided(self):
     new_sys_name = "Sys%s" % Base.random_string()
     out,err = System.system_unregister_orgname_not_provided(new_sys_name)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --org option requires an argument\n")
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_systems.py

示例8: test_env_delete

    def test_env_delete(self):
	new_org_name = "Org%s" % Base.random_string()
        new_env_name = "Env%s" % Base.random_string()
        out,err = Environment.environment_delete(new_org_name,new_env_name)
        Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_env.py

示例9: test_provider_list

    def test_provider_list(self):
 	new_org_name  = "org%s" % Base.random_string()       
        out, err = Provider.provider_list(new_org_name)
        Assert.equal(err, None)
開發者ID:tkolhar,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_provider.py

示例10: test_env_list

    def test_env_list(self):
	new_org_name = "Org%s" % Base.random_string() 
        out, err = Environment.environment_list(new_org_name)
        Assert.equal(err, None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_env.py

示例11: test_env_create

 def test_env_create(self):
     new_env_name = "Env%s" % Base.random_string()
     new_org_name = "Org%s" % Base.random_string()
     new_env_prior = "Prior%s" % Base.random_string()
     out,err = Environment.environment_create(new_org_name,new_env_name,new_env_prior)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:6,代碼來源:test_cli_env.py

示例12: test_user_role_delete

 def test_user_role_delete(self):
     new_role_name = "role%s" % Base.random_string()
     out,err = User_Role.user_role_delete(new_role_name)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_user_role.py

示例13: test_client_forget

 def test_client_forget(self):
     optionname = "org"
     value = "Org%s" % Base.random_string()
     out, err = Client.client_forget(optionname, value)
     Assert.equal(err, None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:5,代碼來源:test_cli_client.py

示例14: test_client_remember_optionname_missing

 def test_client_remember_optionname_missing(self):
     value = "Org%s" % Base.random_string()
     out, err = Client.client_remember_optionname_missing(value)
     Assert.equal(err,"Usage: headpin [options]\n\nheadpin: error: --option option requires an argument\n")
開發者ID:tkolhar,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_client.py

示例15: test_org_subscriptions

 def test_org_subscriptions(self):
     new_org_name = "Org%s" % Base.random_string()
     out,err = Org.org_subscriptions(new_org_name)
     Assert.equal(err,None)
開發者ID:eanxgeek,項目名稱:headpin.cli.auto,代碼行數:4,代碼來源:test_cli_org.py


注:本文中的commands.base.Base類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。