'Test direct conversion between Bikram Samvat and Gregorian
timetuples (cdate/gdate)'

def testCalendarDate(self):

    test_dates = self.test_dates
    assertEqual = self.assertEqual
    c = S3Calendar('Nepali')
    to_gregorian = c.calendar._gdate
    from_gregorian = c.calendar._cdate
    for (gdate, jd, cdate) in test_dates:
        timetuple = (cdate[0], cdate[1], cdate[2], 8, 0, 0)
        gdate_ = to_gregorian(timetuple)
        assertEqual(gdate_[:3], gdate)
        timetuple = (gdate[0], gdate[1], gdate[2], 8, 0, 0)
        cdate_ = from_gregorian(timetuple)
        assertEqual(cdate_[:3], cdate)
