a pvoutput.org connection always needs a sid
Makefile support for testing with python-nose
Allow config module to take an already opened file instead of a name

Helpful for testing
Start writing some tests

Just trivial tests of the config module, but you've got to start somewhere.
Enable nose coverage support

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Add proper default pvoutput.org server and test
Fix bugs in pvoutput_maybe_init_system()
Add db creation function into the db module

Also add a first, trivial test for that module.
Remove get_last_entry(), get_last_entries()

Nothing is using them.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Add some more database test cases

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Move tests into smadata2 package

Less hassle having them separated from the code.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Some more testing of config handling

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Add a bunch more config tests

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Merge remote-tracking branch 'pbarker/pvoutput'
Rename pvoutput.org API object

PVOutputOrgConnection -> API

It wasn't really a connection, and it's already in a module providing
namespace, we don't need it in the name too.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Configure pvoutputorg.API in terms of base url, instead of server

It's a little more flexible

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Rework pvoutputorg's make_request() method

 * Rename to __request (Python quasi-private method)
 * The only thing callers did with the file handle returned was read it
   all out, so do that and return the data inside the helper
 * All callers passed in urlencoded arguments, so pass a dict and do the
   encoding in the helper too.
 * Switch to Google style guide style docstring.  Of the various docstring
   formatting conventions I could find, it's the easiest to read without
   post-processing, which is the common case.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Add support for getsystem API call

Store some information about it in the API object, and add some functions
to show the results.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Remove DEFAULT_START_TIME constant

Nothing uses it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
PEP8 cleanups, and Makefile support for running pep8

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>