def test_db_remove(self): postgres.db_remove( 'test_db', user='******', host='testhost', port='testport', maintenance_db='maint_db', password='******', runas='foo' ) postgres._run_psql.assert_called_once_with( "/usr/bin/pgsql --no-align --no-readline --no-password --username testuser " "--host testhost --port testport --dbname maint_db " "-c 'DROP DATABASE test_db'", host='testhost', user='******', password='******', runas='foo', port='testport')
def test_db_remove(self): postgres.db_remove( 'test_db', user='******', host='testhost', port='testport', maintenance_db='maint_db', password='******', runas='foo' ) postgres._run_psql.assert_called_once_with( "/usr/bin/pgsql --no-align --no-readline --username testuser " "--host testhost --port testport --dbname maint_db " "-c 'DROP DATABASE test_db'", host='testhost', user='******', password='******', runas='foo', port='testport')
def test_db_remove(self): postgres.db_remove( 'test_db', user='******', host='testhost', port='testport', maintenance_db='maint_db', password='******', runas='foo' ) postgres._run_psql.assert_called_once_with( ['/usr/bin/pgsql', '--no-align', '--no-readline', '--no-password', '--username', 'testuser', '--host', 'testhost', '--port', 'testport', '--dbname', 'maint_db', '-c', 'DROP DATABASE "test_db"'], host='testhost', user='******', password='******', runas='foo', port='testport')
def test_db_remove(self): postgres.db_remove('test_db', user='******', host='testhost', port='testport', maintenance_db='maint_db', password='******', runas='foo') postgres._run_psql.assert_called_once_with([ '/usr/bin/pgsql', '--no-align', '--no-readline', '--no-password', '--username', 'testuser', '--host', 'testhost', '--port', 'testport', '--dbname', 'maint_db', '-c', 'DROP DATABASE "test_db"' ], host='testhost', user='******', password='******', runas='foo', port='testport')