Onionr/tests/test_vanity.py

18 lines
375 B
Python
Raw Normal View History

2019-09-29 01:26:17 +00:00
import sys, os
sys.path.append(".")
sys.path.append("onionr/")
import unittest
import vanityonionr
import mnemonic
m = mnemonic.Mnemonic("english")
wordlist = m.wordlist
class TestBasic(unittest.TestCase):
def test_basic(self):
pair = vanityonionr.find_multiprocess("onion")
b = m.to_mnemonic(pair[0])
self.assertIn("onion", b)
unittest.main()