18 lines
379 B
Python
18 lines
379 B
Python
import sys, os
|
|
sys.path.append(".")
|
|
sys.path.append("src/")
|
|
import unittest
|
|
import vanityonionr
|
|
|
|
import niceware
|
|
|
|
wordlist = niceware.WORD_LIST
|
|
|
|
class TestBasic(unittest.TestCase):
|
|
|
|
def test_basic(self):
|
|
pair = vanityonionr.find_multiprocess("onion")
|
|
b = niceware.bytes_to_passphrase(pair[0])
|
|
self.assertTrue(b[0].startswith("onion"))
|
|
|
|
unittest.main() |