def test_time_types(self):
    specs = []
    if testing.requires.mysql_fsp.enabled:
        fsps = [None, 0, 5]
    else:
        fsps = [None]
    for type_ in (mysql.TIMESTAMP, mysql.DATETIME, mysql.TIME):
        for fsp in fsps:
            if fsp:
                specs.append((type_(fsp=fsp), type_(fsp=fsp)))
            else:
                specs.append((type_(), type_()))
    specs.extend([(TIMESTAMP(), mysql.TIMESTAMP()), (DateTime(), mysql.DATETIME())])
    self._run_test(specs, ['fsp', 'timezone'])
def test_time_types(self):
    specs = []
    if testing.requires.mysql_fsp.enabled:
        fsps = [None, 0, 5]
    else:
        fsps = [None]
    for type_ in (mysql.TIMESTAMP, mysql.DATETIME, mysql.TIME):
        for fsp in fsps:
            if fsp:
                specs.append((type_(fsp=fsp), type_(fsp=fsp)))
            else:
                specs.append((type_(), type_()))
    specs.extend([(TIMESTAMP(), mysql.TIMESTAMP()), (DateTime(), mysql.DATETIME())])
    self._run_test(specs, ['fsp', 'timezone'])