added test for vanity
This commit is contained in:
parent
631510f4fe
commit
7006c7e63d
18
tests/test_vanity.py
Normal file
18
tests/test_vanity.py
Normal file
@ -0,0 +1,18 @@
|
||||
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()
|
Loading…
Reference in New Issue
Block a user