From 7006c7e63df8e0069f17df1552853e9fcc801875 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 28 Sep 2019 20:26:17 -0500 Subject: [PATCH] added test for vanity --- tests/test_vanity.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/test_vanity.py diff --git a/tests/test_vanity.py b/tests/test_vanity.py new file mode 100644 index 00000000..4f17449f --- /dev/null +++ b/tests/test_vanity.py @@ -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() \ No newline at end of file