Exemplo n.º 1
0
 def test_find_entry_does_not_exist(self):
     db = Database(self.kdb_contents, 'password')
     with self.assertRaises(EntryNotFoundError):
         entry = db.find_by_uuid('baduuid')
Exemplo n.º 2
0
 def test_find_entry_does_not_exist(self):
     db = Database(self.kdb_contents, 'password')
     with self.assertRaises(EntryNotFoundError):
         db.find_by_uuid('baduuid')
Exemplo n.º 3
0
 def test_find_entry_by_uuid(self):
     db = Database(self.kdb_contents, 'password')
     entry = db.find_by_uuid('c4d301502050cd695e353b16094be4a7')
     self.assertEqual(entry.uuid, 'c4d301502050cd695e353b16094be4a7')
Exemplo n.º 4
0
 def test_find_entry_by_uuid(self):
     db = Database(self.kdb_contents, 'password')
     entry = db.find_by_uuid('c4d301502050cd695e353b16094be4a7')
     self.assertEqual(entry.uuid, 'c4d301502050cd695e353b16094be4a7')