示例#1
0
	def testSyncNotFound(self):
		attributes = { "number": "11", "string": "one", "even": "true" }

		password = Secret.password_lookup_sync(STORE_SCHEMA, attributes, None)
		self.assertEqual(None, password)

		deleted = Secret.password_remove_sync(STORE_SCHEMA, attributes, None)
		self.assertEqual(False, deleted)
示例#2
0
    def testSyncNotFound(self):
        attributes = {"number": "11", "string": "one", "even": "true"}

        password = Secret.password_lookup_sync(STORE_SCHEMA, attributes, None)
        self.assertEqual(None, password)

        deleted = Secret.password_remove_sync(STORE_SCHEMA, attributes, None)
        self.assertEqual(False, deleted)
示例#3
0
	def testSynchronous(self):
		attributes = { "number": "1", "string": "one", "even": "false" }

		password = Secret.password_lookup_sync(STORE_SCHEMA, attributes, None)
		self.assertEqual("111", password)

		deleted = Secret.password_remove_sync(STORE_SCHEMA, attributes, None)
		self.assertEqual(True, deleted)
示例#4
0
    def testSynchronous(self):
        attributes = {"number": "1", "string": "one", "even": "false"}

        password = Secret.password_lookup_sync(STORE_SCHEMA, attributes, None)
        self.assertEqual("111", password)

        deleted = Secret.password_remove_sync(STORE_SCHEMA, attributes, None)
        self.assertEqual(True, deleted)