'test datetime conversion w microseconds'

def test_datetime_microseconds(self):

    conn = self.connections[0]
    if (not self.mysql_server_is(conn, (5, 6, 4))):
        raise SkipTest('target    backend    does    not    support    microseconds')
    c = conn.cursor()
    dt = datetime.datetime(2013, 11, 12, 9, 9, 9, 123450)
    c.execute('create    table    test_datetime    (id    int,    ts    datetime(6))')
    try:
        c.execute('insert    into    test_datetime    values    (%s,    %s)', (1, dt))
        c.execute('select    ts    from    test_datetime')
        self.assertEqual((dt,), c.fetchone())
    finally:
        c.execute('drop    table    test_datetime')
