fixed broken test

master
Kevin Froman 2018-02-27 18:18:48 -06:00
parent fc5d702706
commit 32b8d9c1a7
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ class OnionrTests(unittest.TestCase):
logger.info('Running address add+remove test')
import core
myCore = core.Core()
if not os.path.exists('data/address.db'):
myCore.createAddressDB()
if myCore.addAddress('facebookcorewwwi.onion') and not myCore.removeAddress('invalid'):
if myCore.removeAddress('facebookcorewwwi.onion'):
self.assertTrue(True)