Onionr/tests/test_vanity.py

18 lines
379 B
Python
Raw Normal View History

2019-09-29 01:26:17 +00:00
import sys, os
sys.path.append(".")
2019-11-21 09:26:23 +00:00
sys.path.append("src/")
2019-09-29 01:26:17 +00:00
import unittest
import vanityonionr
import niceware
wordlist = niceware.WORD_LIST
2019-09-29 01:26:17 +00:00
class TestBasic(unittest.TestCase):
def test_basic(self):
pair = vanityonionr.find_multiprocess("onion")
b = niceware.bytes_to_passphrase(pair[0])
2019-10-05 23:55:40 +00:00
self.assertTrue(b[0].startswith("onion"))
2019-09-29 01:26:17 +00:00
unittest.main()