def testMakeDSN(self):
        formatString = u"(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=" \
                u"(PROTOCOL=TCP)(HOST=%s)(PORT=%d)))(CONNECT_DATA=(SID=%s)))"
        args = (u"hostname", 1521, u"TEST")
        result = cx_Oracle.makedsn(*args)
        self.failUnlessEqual(result, formatString % args)
Generic object-creation function.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/uConnection.py/TestConnection.testMakeDSN--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/views/generic/create_update.py/create_object