Onionr/tests/test_vanity.py
2019-09-30 00:13:43 -05:00

18 lines
366 B
Python

import sys, os
sys.path.append(".")
sys.path.append("onionr/")
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.assertIn("onion", b)
unittest.main()