pep8 tweaks in rest_client.py

Change-Id: Iee946d69438e5286b5a7f68def161dca598333b3
Reviewed-on: http://review.couchbase.org/16871
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
removed strange header magic for username = default

Change-Id: Ic36e1715c035e0b2230c5a553b150eee23f35458
Reviewed-on: http://review.couchbase.org/16872
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
removing logging disabling

Change-Id: I49b969c98907725902e6cc0b4d5e8c478bdf9a94
Reviewed-on: http://review.couchbase.org/17039
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
test_client now uses bucket name from test.ini

Change-Id: Ibd4c71208d785ff357551b0c5f430d4152b8ef25
Reviewed-on: http://review.couchbase.org/16996
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Benjamin Young <benjamin@couchbase.com>
MB-5413 Don't check password for default bucket

We need to handle bucket scenarios that is with and without password.
For default bucket, password is set as None and we should ignore it.

Change-Id: Ia565602da08498240e4720d7f40340fcb84bcca4
Reviewed-on: http://review.couchbase.org/16990
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
added bucket create test

Change-Id: I217667849e005f669c75de6575c2885548387f28
testing object param type for RestConnection

Change-Id: Id50ebcc04e70014f5bb75e62d5c1b922298c5eeb
tested & improved delete_dd; refactored create_dd

delete_design_doc did not properly handle missing
design docs; it now throws an Exception if it is
missing.

Change-Id: I5886dfe90cc789b318127f2a83e71234dc5c9477
testing _create_headers in RestConnection

Change-Id: Ia95e8119d33942ad4af4d898ad627d439ad43e02
testing get_design_doc including Exception case

Change-Id: Ia533ea1ac74e12e2935e063cb7d7d209a3eccc63
testing get_view

Change-Id: Ibdbaa804606c59752791dced8f3674c49302c5bc
deprecating get_view as it dups view_results

Not sure how it came into being either as it is less powerful
than view_results--returning the entire view results as it
does not allow for params to be passed in.

Change-Id: Id41e601885d66dc0b2381bd0c9f42d19d8076733
code reorg to keep related things nearby

Design_doc related stuff near each other. View related
stuff near each other.

Moved tests to match module code.

Change-Id: I2747b1b6895650c9f2a659c804956d2d64c08974
dropped view name check in view_results

It was unclear what the purpose of the check was for
as view results are not returned from the URL
{bucket}/{design_doc_name}--especially when the
design_doc_name did not include _design.

Also switched the string formatting to use the 2.5
compatible %-based system.

Change-Id: Iefd998a0fb8c8f285afd24d5162b87e370490002
cleaning up design docs after failed run

Change-Id: I13830586d5f78f15b9af9ffde053cc3bed9a292d
testing view_results in RestConnection

Change-Id: Ibc8c28f24ec7d52a42bd481e21d90b5cc4520468
using @nottest in test_client

The @nottest decorator lets nosetest skip things
that are not tests--setup functions, etc. If we
leave it out, nosetest may run setup style
functions unnecessarily and create extra docs,
buckets, or fixture stuff.

Change-Id: Ic9b7415a33043721584d0cb701201b8c5a9a2b05
tweaked the decorators for test_restclient

Made sure 1.8.0 compatible REST calls were marked.
Added @nottest where needed

Change-Id: I0517f14925e5fc76013570f02ef1a87a74747e62
added SkipTest; using to skip 8091 when on 9000

If the tests are not running on the default port,
we should not test the default port behavior.

Change-Id: I0897fd1ccaa02ccbc7e8a2bf6809fa9e8c44fc81
testing bucket delete

Change-Id: I0ef69fc2369c2c9ee17b8fbe9ffc6d1d04edfdc0