Changeset 13449

Show
Ignore:
Timestamp:
11/15/07 22:56:01 (1 year ago)
Author:
piotras
Message:

Tests tuning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/apis/python/tests/midgard_connection.py

    r13446 r13449  
    11import midgard2 as midgard 
    2  
    3 print dir(midgard) 
    4  
    5 print dir(midgard.connection) 
    62 
    73class my_connection (midgard.connection): 
     
    1612c = cnc.connect() 
    1713 
     14if c == False: 
     15        raise SystemError("Failed to connect to midgard database"); 
     16 
    1817try: 
    1918        cn = my_connection() 
    2019        c = cn.connect() 
     20        raise SystemError("midgard.connection sigleton failed"); 
    2121except TypeError: 
    22         print "Tried new connection. Already connected to midgard database" 
     22        pass 
     23 
     24# TODO, open_config