I get the errors below when running trial desktopcouch.
Also, the code does not seem to follow any PEP 8 guidelines.
===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_func_get_records_and_type
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
testMethod()
File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 148, in test_func_get_records_and_type
results = self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_get_view_by_type_createxcl_fail
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
testMethod()
File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 175, in test_get_view_by_type_createxcl_fail
self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
===============================================================================
[ERROR]: desktopcouch.records.tests.test_server.TestCouchDatabase.test_get_view_by_type_new_but_already
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line 175, in run
testMethod()
File "/home/john/canonical/ubuntuone/desktopcouch/urllibquote/desktopcouch/records/tests/test_server.py", line 170, in test_get_view_by_type_new_but_already
self.database.get_records_and_type(create_view=True)
exceptions.AttributeError: 'CouchDatabase' object has no attribute 'get_records_and_type'
-------------------------------------------------------------------------------
Ran 36 tests in 4.112s
FAILED (errors=4, successes=32)
The function has been renamed to just get_records