Changeset 841 for trunk/tests


Ignore:
Timestamp:
Feb 8, 2016, 3:05:37 PM (4 years ago)
Author:
cito
Message:

Add type helper for UUIDs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/test_dbapi20.py

    r840 r841  
    3030
    3131from datetime import date, time, datetime, timedelta
    32 from uuid import UUID
     32from uuid import UUID as Uuid
    3333
    3434try:
     
    643643
    644644    def test_uuid(self):
    645         d = UUID('{12345678-1234-5678-1234-567812345678}')
     645        self.assertIs(Uuid, pgdb.Uuid)
     646        d = Uuid('{12345678-1234-5678-1234-567812345678}')
    646647        con = self._connect()
    647648        try:
     
    651652        finally:
    652653            con.close()
    653         self.assertIsInstance(result, UUID)
     654        self.assertIsInstance(result, Uuid)
    654655        self.assertEqual(result, d)
    655656
Note: See TracChangeset for help on using the changeset viewer.