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)
Example #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)
	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)
Example #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)