2014-06-06 21:12:59 +00:00
|
|
|
import unittest
|
|
|
|
import os
|
|
|
|
|
|
|
|
from hackertray import Chrome
|
|
|
|
|
|
|
|
class ChromeTest(unittest.TestCase):
|
|
|
|
def runTest(self):
|
2014-06-06 21:21:34 +00:00
|
|
|
config_folder_path = os.getcwd()+'/test/'
|
|
|
|
data = Chrome.search([
|
2014-06-06 21:12:59 +00:00
|
|
|
"https://github.com/",
|
|
|
|
"https://news.ycombinator.com/",
|
|
|
|
"https://github.com/captn3m0/hackertray",
|
|
|
|
"http://invalid_url/"],
|
|
|
|
config_folder_path)
|
2014-06-06 21:21:34 +00:00
|
|
|
self.assertTrue(data == [True,True,True,False])
|