~ubuntuone-control-tower/desktopcouch/trunk

« back to all changes in this revision

Viewing changes to desktopcouch/records/tests/test_server.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2010-12-17 16:46:33 UTC
  • mfrom: (238.1.5 u1-connection)
  • Revision ID: tarmac-20101217164633-5oi9srkt7t070bw3
Add simple plug-ins handling
Put the Ubuntu One pairing bits into a plug-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
"""testing database/contact.py module"""
22
22
 
23
 
import testtools
24
23
import os
25
24
import time
26
25
 
34
33
from desktopcouch.application.stop_local_couchdb import stop_couchdb
35
34
from desktopcouch.application.platform import find_pid
36
35
 
 
36
from unittest import TestCase
 
37
 
37
38
# pylint can't deal with failing imports even when they're handled
38
39
# pylint: disable=F0401
39
40
try:
53
54
# I don't care about private members in tests.
54
55
 
55
56
 
56
 
class TestCouchDatabaseDeprecated(testtools.TestCase):
 
57
class TestCouchDatabaseDeprecated(TestCase):
57
58
    """Test specific for CouchDatabase"""
58
59
 
59
60
    def setUp(self):
165
166
            KeyError, self.database.get_records, create_view=None)
166
167
 
167
168
 
168
 
class TestDesktopDatabase(testtools.TestCase):
 
169
class TestDesktopDatabase(TestCase):
169
170
    """Test case for DesktopDatabase."""
170
171
 
171
172
    def setUp(self):