本文整理匯總了Python中b3.clients.Client.guid方法的典型用法代碼示例。如果您正苦於以下問題:Python Client.guid方法的具體用法?Python Client.guid怎麽用?Python Client.guid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類b3.clients.Client
的用法示例。
在下文中一共展示了Client.guid方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_guid_readonly
# 需要導入模塊: from b3.clients import Client [as 別名]
# 或者: from b3.clients.Client import guid [as 別名]
def test_guid_readonly(self):
c = Client(console=b3.console)
self.assertFalse(c.authed)
c.guid = "foo"
self.assertEqual(c.guid, "foo")
c.auth()
self.assertTrue(c.authed)
# upon guid change, prevent change and consider client not
# authed anymore
c.guid = "bar"
self.assertFalse(c.authed)
c.guid = "foo"