本文整理匯總了Python中Server.delete方法的典型用法代碼示例。如果您正苦於以下問題:Python Server.delete方法的具體用法?Python Server.delete怎麽用?Python Server.delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Server
的用法示例。
在下文中一共展示了Server.delete方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_read
# 需要導入模塊: import Server [as 別名]
# 或者: from Server import delete [as 別名]
def test_read(self):
Server.delete("h")
self.assertEqual("Fail! Record with key \"h\" was not found!", Server.read("h"))
Server.create("h", "h")
self.assertEqual("h : h", Server.read("h"))
return
示例2: test_delete
# 需要導入模塊: import Server [as 別名]
# 或者: from Server import delete [as 別名]
def test_delete(self):
Server.delete("h")
self.assertEqual("Fail! Record with key \"h\" was not found!", Server.delete("h"))
Server.create("h", "ha")
self.assertEqual(Server.success, Server.delete("h"))
示例3: test_create
# 需要導入模塊: import Server [as 別名]
# 或者: from Server import delete [as 別名]
def test_create(self):
Server.delete("h")
self.assertEqual(Server.success, Server.create("h", "h"))
self.assertEqual("Fail! h : h", Server.create("h", "h"))