Beispiel #1
0
    def test_latestEntryBeforeOrEqualTo(self):

        product = "Firefox"
        version = "8.0"
        now = self.now.date()
        to_date = now - datetime.timedelta(days=1)
        lastweek = now - datetime.timedelta(days=7)

        res = tcbs.latestEntryBeforeOrEqualTo(self.connection, to_date, product, version)
        eq_(res, lastweek)
Beispiel #2
0
    def test_latestEntryBeforeOrEqualTo(self):

        product = 'Firefox'
        version = '8.0'
        now = self.now.date()
        to_date = now - datetime.timedelta(days=1)
        lastweek = now - datetime.timedelta(days=7)

        res = tcbs.latestEntryBeforeOrEqualTo(self.connection, to_date,
                                              product, version)
        eq_(res, lastweek)
Beispiel #3
0
    def test_latestEntryBeforeOrEqualTo(self):

        cursor = self.connection.cursor()

        product = 'Firefox'
        version = '8.0'
        now = self.now.date()
        to_date = now - datetime.timedelta(days=1)
        lastweek = now - datetime.timedelta(days=7)

        res = tcbs.latestEntryBeforeOrEqualTo(cursor, to_date,
                                              product, version)
        self.assertEqual(res, lastweek)