Skip to content

Commit

Permalink
Integration test for fuzzy matching.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebrock committed Nov 5, 2013
1 parent 73546d7 commit 000cbc1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ def test_unlock_and_read_generic_account_password(self):
keychain.unlock("badger")
self.assertEquals("flibble", keychain.item("Generic Account").password)

def test_unlock_and_read_with_fuzzy_matching(self):
keychain = Keychain(path=self.keychain_path)

keychain.unlock("badger")
item = keychain.item("foobr", fuzzy_threshold=70)
self.assertEquals("foobar", item.password)

@property
def keychain_path(self):
return os.path.join(os.path.dirname(__file__), "data", "1Password.agilekeychain")

0 comments on commit 000cbc1

Please sign in to comment.