'Test we can parse a standard file.'

def testBasicParsing(self):

    history_file = os.path.join(self.base_path, 'places.sqlite')
    history = firefox3_history.Firefox3History(open(history_file, 'rb'))
    entries = [x for x in history.Parse()]
    self.assertEqual(len(entries), 1)
    try:
        dt1 = datetime.datetime(1970, 1, 1)
        dt1 += datetime.timedelta(microseconds=entries[0][0])
    except (TypeError, ValueError):
        dt1 = entries[0][0]
    self.assertEqual(str(dt1), '2011-07-01    11:16:21.371935')
    self.assertEqual(entries[0][2], 'http://news.google.com/')
    self.assertEqual(entries[0][3], 'Google    News')
