@when(u'we connect to postgres')
def step_db_connect_postgres(context):
 context.cli.sendline(u'\\connect postgres')

@ when ( u'we connect to postgres' ) def step_db_connect_postgres ( context ) : context . cli . sendline ( u'\\connect postgres' )
send connect to database .