import unittest
import sys
sys.path.append("../scraper")
sys.path.append("..")
from utility import seleniumx
from selenium import webdriver

driver = webdriver.PhantomJS()

seleniumx.initialize_selenium(['source/selenium_dummy.html'], driver)

class SeleniumxTestCase(unittest.TestCase):
	# Didn't work, self.source and self.html were in a different form. A matter of fixing self.source to be the right type. 
	# def test_initialize_selenium(self):
	# 	self.source = open('source/selenium_dummy.html', 'r')
	# 	self.html = str(self.source)
	# 	self.source.close()
	# 	self.assertEqual(driver.page_source, self.html)

	def test_selenium_scrape(self):
		ticket_links = seleniumx.selenium_scrape(".buttons", driver)
		desired_result_set = ['\n\t\t\n\t\t<a href="http://www.axs.com/events/254652/wish-we-were-floyd-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255175/russian-circles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254377/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254410/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254378/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255921/scarlet-canary-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256182/top-flite-empire-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256642/the-a-oks-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256376/nuns-will-shudder-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255888/aesop-rock-with-rob-sonic-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256382/electron-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256707/adrienne-o-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256964/digital-connection-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256109/wale-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255376/the-expendables-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256448/partynextdoor-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255182/an-evening-with-eric-johnson-mike-stern-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256442/zach-deputy-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255893/motion-city-soundtrack-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256618/screeching-weasel-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256135/the-church-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256534/doomtree-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255637/echosmith-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/257116/juno-whaty-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255401/sylvan-esso-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256906/andy-grammer-alex-sierra-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255232/colin-hay-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256138/clean-bandit-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256392/kalin-myles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255955/jose-gonzalez-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256445/ministry-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t']
		self.assertEqual(ticket_links, desired_result_set)

if __name__ == '__main__':
	unittest.main()
	driver.close()
13498d9be9515b76773a1c983913fcbc3999c375
<mask token>

<mask token>


class SeleniumxTestCase(unittest.TestCase):

    def test_selenium_scrape(self):
        ticket_links = seleniumx.selenium_scrape('.buttons', driver)
        desired_result_set = [
            """
		
		<a href="http://www.axs.com/events/254652/wish-we-were-floyd-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255175/russian-circles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254377/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254410/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254378/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255921/scarlet-canary-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256182/top-flite-empire-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256642/the-a-oks-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256376/nuns-will-shudder-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255888/aesop-rock-with-rob-sonic-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256382/electron-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256707/adrienne-o-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256964/digital-connection-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256109/wale-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255376/the-expendables-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256448/partynextdoor-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255182/an-evening-with-eric-johnson-mike-stern-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256442/zach-deputy-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255893/motion-city-soundtrack-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256618/screeching-weasel-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256135/the-church-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256534/doomtree-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255637/echosmith-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/257116/juno-whaty-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255401/sylvan-esso-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256906/andy-grammer-alex-sierra-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255232/colin-hay-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256138/clean-bandit-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256392/kalin-myles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255955/jose-gonzalez-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256445/ministry-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ]
        self.assertEqual(ticket_links, desired_result_set)


<mask token>

<mask token>
sys.path.append('../scraper')
sys.path.append('..')
<mask token>
seleniumx.initialize_selenium(['source/selenium_dummy.html'], driver)


class SeleniumxTestCase(unittest.TestCase):

    def test_selenium_scrape(self):
        ticket_links = seleniumx.selenium_scrape('.buttons', driver)
        desired_result_set = [
            """
		
		<a href="http://www.axs.com/events/254652/wish-we-were-floyd-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255175/russian-circles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254377/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254410/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254378/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255921/scarlet-canary-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256182/top-flite-empire-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256642/the-a-oks-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256376/nuns-will-shudder-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255888/aesop-rock-with-rob-sonic-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256382/electron-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256707/adrienne-o-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256964/digital-connection-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256109/wale-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255376/the-expendables-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256448/partynextdoor-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255182/an-evening-with-eric-johnson-mike-stern-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256442/zach-deputy-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255893/motion-city-soundtrack-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256618/screeching-weasel-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256135/the-church-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256534/doomtree-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255637/echosmith-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/257116/juno-whaty-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255401/sylvan-esso-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256906/andy-grammer-alex-sierra-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255232/colin-hay-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256138/clean-bandit-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256392/kalin-myles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255955/jose-gonzalez-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256445/ministry-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ]
        self.assertEqual(ticket_links, desired_result_set)


if __name__ == '__main__':
    unittest.main()
    driver.close()

import unittest
import sys
sys.path.append('../scraper')
sys.path.append('..')
from utility import seleniumx
from selenium import webdriver
driver = webdriver.PhantomJS()
seleniumx.initialize_selenium(['source/selenium_dummy.html'], driver)


class SeleniumxTestCase(unittest.TestCase):

    def test_selenium_scrape(self):
        ticket_links = seleniumx.selenium_scrape('.buttons', driver)
        desired_result_set = [
            """
		
		<a href="http://www.axs.com/events/254652/wish-we-were-floyd-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255175/russian-circles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254377/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254410/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/254378/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255921/scarlet-canary-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256182/top-flite-empire-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256642/the-a-oks-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256376/nuns-will-shudder-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255888/aesop-rock-with-rob-sonic-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256382/electron-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256707/adrienne-o-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256964/digital-connection-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256109/wale-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255376/the-expendables-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256448/partynextdoor-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255182/an-evening-with-eric-johnson-mike-stern-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256442/zach-deputy-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255893/motion-city-soundtrack-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256618/screeching-weasel-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256135/the-church-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256534/doomtree-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255637/echosmith-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/257116/juno-whaty-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255401/sylvan-esso-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256906/andy-grammer-alex-sierra-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255232/colin-hay-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256138/clean-bandit-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256392/kalin-myles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/255955/jose-gonzalez-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ,
            """
		
		<a href="http://www.axs.com/events/256445/ministry-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>
	"""
            ]
        self.assertEqual(ticket_links, desired_result_set)


if __name__ == '__main__':
    unittest.main()
    driver.close()

import unittest
import sys
sys.path.append("../scraper")
sys.path.append("..")
from utility import seleniumx
from selenium import webdriver

driver = webdriver.PhantomJS()

seleniumx.initialize_selenium(['source/selenium_dummy.html'], driver)

class SeleniumxTestCase(unittest.TestCase):
	# Didn't work, self.source and self.html were in a different form. A matter of fixing self.source to be the right type. 
	# def test_initialize_selenium(self):
	# 	self.source = open('source/selenium_dummy.html', 'r')
	# 	self.html = str(self.source)
	# 	self.source.close()
	# 	self.assertEqual(driver.page_source, self.html)

	def test_selenium_scrape(self):
		ticket_links = seleniumx.selenium_scrape(".buttons", driver)
		desired_result_set = ['\n\t\t\n\t\t<a href="http://www.axs.com/events/254652/wish-we-were-floyd-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255175/russian-circles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254377/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254410/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/254378/lucero-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255921/scarlet-canary-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256182/top-flite-empire-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256642/the-a-oks-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256376/nuns-will-shudder-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255888/aesop-rock-with-rob-sonic-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256382/electron-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256707/adrienne-o-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256964/digital-connection-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256109/wale-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255376/the-expendables-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256448/partynextdoor-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255182/an-evening-with-eric-johnson-mike-stern-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256442/zach-deputy-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255893/motion-city-soundtrack-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256618/screeching-weasel-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256135/the-church-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256534/doomtree-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255637/echosmith-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/257116/juno-whaty-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255401/sylvan-esso-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256906/andy-grammer-alex-sierra-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255232/colin-hay-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256138/clean-bandit-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256392/kalin-myles-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/255955/jose-gonzalez-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t', '\n\t\t\n\t\t<a href="http://www.axs.com/events/256445/ministry-tickets?skin=gothictheatre" title="Buy Tickets" target="_blank" class="btn-tickets accentBackground widgetBorderColor secondaryColor tickets status_1"><i class="fa fa-ticket fa-secondary"></i>Buy Tickets</a>\n\t']
		self.assertEqual(ticket_links, desired_result_set)

if __name__ == '__main__':
	unittest.main()
	driver.close()