@when(u'we connect to test database')
def step_db_connect_test(context):
 db_name = context.conf[u'dbname']
 context.cli.sendline(u'\\connect {0}'.format(db_name))

@ when ( u'we connect to test database' ) def step_db_connect_test ( context ) : db_name = context . conf [ u'dbname' ] context . cli . sendline ( u'\\connect {0}' . format ( db_name ) )
send connect to database .