'Check if the datetime object contains the same time value
in microseconds.'

def check_time(self, dTime, stime):

    t = (mktime(dTime.timetuple()) + (1e-06 * dTime.microsecond))
    self.assertEqual(long(t), (stime / 1000))
