def main(): store = PasswordStore() entries = store.get_passwords_list() with open('pass.csv', 'w', newline='') as csvfile: csvwriter = csv.writer(csvfile) for entry in entries: csvwriter.writerow(parse(entry, store))
def test_get_passwords_list(self): store = PasswordStore(self.dir) self.assertListEqual( sorted(store.get_passwords_list()), sorted([ 'test.com', 'linux.ca', 'passwordstore.org', 'Email/email.com', ]))
def test_get_passwords_list(self): store = PasswordStore(self.dir) self.assertListEqual( sorted(store.get_passwords_list()), sorted([ 'test.com', 'linux.ca', 'passwordstore.org', 'Email/email.com', ]) )