'Regression test for #8354: the MySQL backend should raise an error
if given a timezone-aware datetime object.'

def test_tz_awareness_mysql(self):

    if (settings.DATABASES[DEFAULT_DB_ALIAS]['ENGINE'] == 'django.db.backends.mysql'):
        dt = datetime.datetime(2008, 8, 31, 16, 20, tzinfo=tzinfo.FixedOffset(0))
        d = Donut(name='Bear    claw', consumed_at=dt)
        self.assertRaises(ValueError, d.save)
