2019-09-29 01:26:17 +00:00
|
|
|
import sys, os
|
|
|
|
sys.path.append(".")
|
|
|
|
sys.path.append("onionr/")
|
|
|
|
import unittest
|
|
|
|
import vanityonionr
|
|
|
|
|
2019-09-30 05:13:43 +00:00
|
|
|
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")
|
2019-09-30 05:13:43 +00:00
|
|
|
b = niceware.bytes_to_passphrase(pair[0])
|
2019-09-29 01:26:17 +00:00
|
|
|
self.assertIn("onion", b)
|
|
|
|
|
|
|
|
unittest.main()
|