'test making a data source name from host, port and sid'

def testMakeDSN(self):

    formatString = ('(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)' + '(HOST=%s)(PORT=%d)))(CONNECT_DATA=(SID=%s)))')
    args = ('hostname', 1521, 'TEST')
    result = cx_Oracle.makedsn(*args)
    self.failUnlessEqual(result, (formatString % args))
