def test_passwordless_ecdsa(self): entry = self.kdb.find_entries_by_path('without_passphrase/id_ecdsa')[0] ssh_entry = SshEntry(self.kdb, entry) private_key = ssh_entry.private_key self.agent.add_key(private_key) self.assertTrue(self.agent.is_key_active(private_key))
def test_file_ecdsa(self): entry = self.kdb.find_entries_by_path('file_keys/id_ecdsa')[0] ssh_entry = SshEntry(self.kdb, entry) private_key = ssh_entry.private_key self.agent.add_key(private_key) self.assertTrue(self.agent.is_key_active(private_key))