mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
basic tests added as trial
This commit is contained in:
parent
b5b5068ab4
commit
e891b29936
1 changed files with 7 additions and 4 deletions
|
@ -10,12 +10,15 @@ class OnionExplorerTest(unittest.TestCase):
|
|||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.driver = webdriver.Firefox()
|
||||
cls.url = 'http://127.0.0.1:8081/'
|
||||
|
||||
def test_title(self):
|
||||
self.driver.get('http://127.0.0.1:8081/')
|
||||
self.assertEqual(
|
||||
self.driver.title,
|
||||
'Onion Monero Blockchain Explorer')
|
||||
self.driver.get(self.url)
|
||||
self.assertEqual(self.driver.title, 'Onion Monero Blockchain Explorer')
|
||||
|
||||
def test_footer(self):
|
||||
self.driver.get(self.url)
|
||||
self.assertIn('source code', self.driver.page_source)
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue