def test_2012ct_bad_location(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        event['location'] = "somewhere on mars"
        self.assertEqual(LocationHelper.get_lat_lng(event['location']), None)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), None)
    def test_2001sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2001ca2.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = LocationHelper.get_lat_lng(event['location'])
        self.assertAlmostEqual(location[0], 37.3382082, places=6)
        self.assertAlmostEqual(location[1], -121.8863286, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']),
                         'America/Los_Angeles')
    def test_2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = LocationHelper.get_lat_lng(event['location'])
        self.assertAlmostEqual(location[0], 26.1224386, places=6)
        self.assertAlmostEqual(location[1], -80.13731740000001, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']),
                         'America/New_York')
    def test_2012ct(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = LocationHelper.get_lat_lng(event['location'])
        self.assertAlmostEqual(location[0], 41.76371109999999, places=6)
        self.assertAlmostEqual(location[1], -72.6850932, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']),
                         'America/New_York')
    def test_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = LocationHelper.get_lat_lng(event['location'])
        self.assertAlmostEqual(location[0], 41.8781136, places=6)
        self.assertAlmostEqual(location[1], -87.6297982, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']),
                         'America/Chicago')
    def test_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 41.8781136, places=6)
        self.assertAlmostEqual(location[1], -87.6297982, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/Chicago')
    def test_2012ct(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 41.76371109999999, places=6)
        self.assertAlmostEqual(location[1], -72.6850932, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/New_York')
    def test_2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 26.1224386, places=6)
        self.assertAlmostEqual(location[1], -80.13731740000001, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/New_York')
Ejemplo n.º 9
0
    def test_2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 32.7940463, places=6)
        self.assertAlmostEqual(location[1], 34.989571, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'Asia/Jerusalem')
Ejemplo n.º 10
0
    def test_2005or(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005or.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 45.5230622, places=6)
        self.assertAlmostEqual(location[1], -122.6764816, places=6)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/Los_Angeles')
    def test_parse2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html', 'r') as f:
            event = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "South Florida Regional")
        self.assertEqual(event["event_type"], "Regional")
        self.assertEqual(event["start_date"], datetime.datetime(2013, 3, 28, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(2013, 3, 30, 0, 0))
        self.assertEqual(event["year"], 2013)
        self.assertEqual(event["venue_address"], "Great Fort Lauderdale & Broward County Convention Center\r\n1950 Eisenhower Boulevard\r\nFort Lauderdale, FL 33316\r\nUSA")
        self.assertEqual(event["website"], "http://firstinflorida.org")
        self.assertEqual(event["event_short"], "flbr")
 def test_parse2012ct(self):
     with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f: 
         event = UsfirstEventDetailsParser.parse(f.read())
     
     self.assertEqual(event["name"], "Northeast Utilities FIRST Connecticut Regional")
     self.assertEqual(event["event_type"], "Regional")
     self.assertEqual(event["start_date"], datetime.datetime(2012, 3, 29, 0, 0))
     self.assertEqual(event["end_date"], datetime.datetime(2012, 3, 31, 0, 0))
     self.assertEqual(event["year"], 2012)
     self.assertEqual(event["venue_address"], "Connecticut Convention Center\r\n100 Columbus Blvd\r\nHartford, CT 06103\r\nUSA")
     self.assertEqual(event["website"], "http://www.ctfirst.org/ctr")
     self.assertEqual(event["event_short"], "ct")
    def test_parse2001sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2001ca2.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Silicon Valley Regional")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"], datetime.datetime(2001, 3, 22, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(2001, 3, 24, 0, 0))
        self.assertEqual(event["year"], 2001)
        self.assertEqual(event["venue_address"], "San Jose, CA\r\nUSA")
        self.assertEqual(event["location"], "San Jose, CA, USA")
        self.assertEqual(event["event_short"], "ca2")
    def test_parse_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Motorola Midwest Regional")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"], datetime.datetime(1997, 3, 6, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(1997, 3, 8, 0, 0))
        self.assertEqual(event["year"], 1997)
        self.assertEqual(event["venue_address"], "William Rainey Harper College\r\nChicago, IL\r\nUSA")
        self.assertEqual(event["venue"], "William Rainey Harper College")
        self.assertEqual(event["location"], "Chicago, IL, USA")
        self.assertEqual(event["event_short"], "il")
    def test_parse2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "GM/Technion University Israel Pilot Regional")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"], datetime.datetime(2005, 3, 9, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(2005, 3, 9, 0, 0))
        self.assertEqual(event["year"], 2005)
        self.assertEqual(event["venue_address"], "Haifa Sports Coliseum\r\nHaifa, Haifa\r\nIsrael")
        self.assertEqual(event["venue"], "Haifa Sports Coliseum")
        self.assertEqual(event["location"], "Haifa, Haifa, Israel")
        self.assertEqual(event["event_short"], "is")
    def test_parse2005or(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005or.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Pacific Northwest Regional")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"], datetime.datetime(2005, 3, 10, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(2005, 3, 12, 0, 0))
        self.assertEqual(event["year"], 2005)
        self.assertEqual(event["venue_address"], "Memorial Coliseum\r\nPortland, OR 97201\r\nUSA")
        self.assertEqual(event["venue"], "Memorial Coliseum")
        self.assertEqual(event["location"], "Portland, OR, USA")
        self.assertEqual(event["event_short"], "or")
    def test_2012ct(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        location = None
        for _ in xrange(5):
            location = LocationHelper.get_lat_lng(event['location'])
            if location:
                break
        self.assertAlmostEqual(location[0], 41.7658043, places=3)
        self.assertAlmostEqual(location[1], -72.6733723, places=3)
        self.assertEqual(LocationHelper.get_timezone_id(event['location']),
                         'America/New_York')
    def test_parse2013casj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013casj.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Silicon Valley Regional")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"], datetime.datetime(2013, 4, 4, 0, 0))
        self.assertEqual(event["end_date"], datetime.datetime(2013, 4, 6, 0, 0))
        self.assertEqual(event["year"], 2013)
        self.assertEqual(event["venue_address"], "San Jose State University\r\nThe Event Center\r\nSan Jose, CA 95192\r\nUSA")
        self.assertEqual(event["venue"], "San Jose State University")
        self.assertEqual(event["location"], "San Jose, CA, USA")
        self.assertEqual(event["website"], "http://www.firstsv.org")
        self.assertEqual(event["event_short"], "casj")
Ejemplo n.º 19
0
    def test_parse2001sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2001ca2.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Silicon Valley Regional")
        self.assertEqual(event["short_name"], "Silicon Valley")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2001, 3, 22, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2001, 3, 24, 0, 0))
        self.assertEqual(event["year"], 2001)
        self.assertEqual(event["venue_address"], "San Jose, CA\r\nUSA")
        self.assertEqual(event["location"], "San Jose, CA, USA")
        self.assertEqual(event["event_short"], "ca2")
Ejemplo n.º 20
0
    def test_parse2005or(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005or.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Pacific Northwest Regional")
        self.assertEqual(event["short_name"], "Pacific Northwest")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2005, 3, 10, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2005, 3, 12, 0, 0))
        self.assertEqual(event["year"], 2005)
        self.assertEqual(event["venue_address"],
                         "Memorial Coliseum\r\nPortland, OR 97201\r\nUSA")
        self.assertEqual(event["venue"], "Memorial Coliseum")
        self.assertEqual(event["location"], "Portland, OR, USA")
        self.assertEqual(event["event_short"], "or")
Ejemplo n.º 21
0
    def test_parse_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Motorola Midwest Regional")
        self.assertEqual(event["short_name"], "Motorola Midwest")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(1997, 3, 6, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(1997, 3, 8, 0, 0))
        self.assertEqual(event["year"], 1997)
        self.assertEqual(
            event["venue_address"],
            "William Rainey Harper College\r\nChicago, IL\r\nUSA")
        self.assertEqual(event["venue"], "William Rainey Harper College")
        self.assertEqual(event["location"], "Chicago, IL, USA")
        self.assertEqual(event["event_short"], "il")
Ejemplo n.º 22
0
    def test_parse2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"],
                         "GM/Technion University Israel Pilot Regional")
        self.assertEqual(event["short_name"],
                         "GM/Technion University Israel Pilot")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2005, 3, 9, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2005, 3, 9, 0, 0))
        self.assertEqual(event["year"], 2005)
        self.assertEqual(event["venue_address"],
                         "Haifa Sports Coliseum\r\nHaifa, Haifa\r\nIsrael")
        self.assertEqual(event["venue"], "Haifa Sports Coliseum")
        self.assertEqual(event["location"], "Haifa, Haifa, Israel")
        self.assertEqual(event["event_short"], "is")
Ejemplo n.º 23
0
    def test_parse2013casj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013casj.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "Silicon Valley Regional")
        self.assertEqual(event["short_name"], "Silicon Valley")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2013, 4, 4, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2013, 4, 6, 0, 0))
        self.assertEqual(event["year"], 2013)
        self.assertEqual(
            event["venue_address"],
            "San Jose State University\r\nThe Event Center\r\nSan Jose, CA 95192\r\nUSA"
        )
        self.assertEqual(event["venue"], "San Jose State University")
        self.assertEqual(event["location"], "San Jose, CA, USA")
        self.assertEqual(event["website"], "http://www.firstsv.org")
        self.assertEqual(event["event_short"], "casj")
Ejemplo n.º 24
0
    def test_parse2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"], "South Florida Regional")
        self.assertEqual(event["short_name"], "South Florida")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2013, 3, 28, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2013, 3, 30, 0, 0))
        self.assertEqual(event["year"], 2013)
        self.assertEqual(
            event["venue_address"],
            "Great Fort Lauderdale & Broward County Convention Center\r\n1950 Eisenhower Boulevard\r\nFort Lauderdale, FL 33316\r\nUSA"
        )
        self.assertEqual(
            event["venue"],
            "Great Fort Lauderdale & Broward County Convention Center")
        self.assertEqual(event["location"], "Fort Lauderdale, FL, USA")
        self.assertEqual(event["website"], "http://firstinflorida.org")
        self.assertEqual(event["event_short"], "flbr")
Ejemplo n.º 25
0
    def test_parse2012ct(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(event["name"],
                         "Northeast Utilities FIRST Connecticut Regional")
        self.assertEqual(event["short_name"],
                         "Northeast Utilities FIRST Connecticut")
        self.assertEqual(event["event_type_enum"], EventType.REGIONAL)
        self.assertEqual(event["start_date"],
                         datetime.datetime(2012, 3, 29, 0, 0))
        self.assertEqual(event["end_date"],
                         datetime.datetime(2012, 3, 31, 0, 0))
        self.assertEqual(event["year"], 2012)
        self.assertEqual(
            event["venue_address"],
            "Connecticut Convention Center\r\n100 Columbus Blvd\r\nHartford, CT 06103\r\nUSA"
        )
        self.assertEqual(event["venue"], "Connecticut Convention Center")
        self.assertEqual(event["location"], "Hartford, CT, USA")
        self.assertEqual(event["website"], "http://www.ctfirst.org/ctr")
        self.assertEqual(event["event_short"], "ct")
    def test_2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'America/New_York')
    def test_2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'Asia/Jerusalem')
    def test_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'America/Chicago')
    def test_2002sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2002sj.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'America/Los_Angeles')
    def test_2012ct(self):
        with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (41.76371109999999, -72.6850932))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/New_York')
    def test_2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'Asia/Jerusalem')
    def test_2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event['location'], '{}{}'.format(event['year'], event['event_short'])), 'Asia/Jerusalem')
    def test_2005or(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005or.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (45.5230622, -122.6764816))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/Los_Angeles')
    def test_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (41.8781136, -87.6297982))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/Chicago')
    def test_2002sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2002sj.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (37.3382082, -121.8863286))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/Los_Angeles')
    def test_1997il(self):
        with open('test_data/usfirst_html/usfirst_event_details_1997il.html',
                  'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event), 'America/Chicago')
 def test_2012ct_no_location(self):
     with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f:
         event, _ = UsfirstEventDetailsParser.parse(f.read())
     event['location'] = None
     self.assertEqual(EventHelper.get_timezone_id(event), None)
    def test_2005is(self):
        with open('test_data/usfirst_html/usfirst_event_details_2005is.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (32.7940463, 34.989571))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'Asia/Jerusalem')
 def test_2012ct_bad_location(self):
     with open('test_data/usfirst_html/usfirst_event_details_2012ct.html', 'r') as f:
         event, _ = UsfirstEventDetailsParser.parse(f.read())
     event['location'] = "somewhere on mars"
     self.assertEqual(EventHelper.get_timezone_id(event['location'], '{}{}'.format(event['year'], event['event_short'])), None)
    def test_2013flbr(self):
        with open('test_data/usfirst_html/usfirst_event_details_2013flbr.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(LocationHelper.get_lat_lon(event['location'])[0], (26.1224386, -80.13731740000001))
        self.assertEqual(LocationHelper.get_timezone_id(event['location']), 'America/New_York')
    def test_2002sj(self):
        with open('test_data/usfirst_html/usfirst_event_details_2002sj.html', 'r') as f:
            event, _ = UsfirstEventDetailsParser.parse(f.read())

        self.assertEqual(EventHelper.get_timezone_id(event['location'], '{}{}'.format(event['year'], event['event_short'])), 'America/Los_Angeles')
 def test_2012ct_bad_location(self):
     with open('test_data/usfirst_html/usfirst_event_details_2012ct.html',
               'r') as f:
         event, _ = UsfirstEventDetailsParser.parse(f.read())
     event['location'] = "somewhere on mars"
     self.assertEqual(EventHelper.get_timezone_id(event), None)