本文整理汇总了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)
示例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)
示例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")
示例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)
示例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)
示例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)
示例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")
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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")
示例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)