~ubuntu-branches/ubuntu/quantal/desktopcouch/quantal

« back to all changes in this revision

Viewing changes to desktopcouch/recordtypes/contacts/tests/test_view.py

  • Committer: Martin Pitt
  • Date: 2011-09-13 15:08:39 UTC
  • mfrom: (46.1.3 1.0.8-0u1)
  • Revision ID: martin.pitt@canonical.com-20110913150839-i38sgr7k9xb7tgi4
* New upstream release.
  - Behavior change: Preserves Ubuntu One service through longer replication
    period, 10 minutes changed to 60 minutes.
  - Feature: Allow COUCH_INI environment variable to override /etc/ default
    config.
  - Feature: Install apport hook.
  - Bug fix: When ubuntuone credentials don't exist, don't wait forever and
    consume CPU. (LP: #760236, #787583)
  - Bug fix: Accept "linux3" kernel also. (LP: #803062)
  - Bug fix: Clean up all children when service exits. (LP: #597197)
* Update standards-version 3.9.1 to 3.9.2.
* Remove brace-expansion from python-desktopcouch-application.install .
* Remove brace-expansion from python-desktopcouch-recordtypes.install .
* Remove patch
  - patches/5-defer-dbus-service-for-plugins.patch
* Remove deprecated CDBS simple-patch system from rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
 
281
281
        contacts = list(
282
282
            view.find_contacts_starting(self.db, first_name="Frances"))
283
 
        self.assertEqual(len(contacts), 1)
 
283
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
284
284
 
285
285
        contacts = list(
286
286
            view.find_contacts_starting(self.db, birth_date="1918"))
287
 
        self.assertEqual(len(contacts), 1)
 
287
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
288
288
 
289
289
        contacts = list(
290
290
            view.find_contacts_starting(self.db, birth_date="1918-08"))
291
 
        self.assertEqual(len(contacts), 1)
 
291
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
292
292
 
293
293
        contacts = list(
294
294
            view.find_contacts_starting(self.db, wedding_date="1970"))
295
 
        self.assertEqual(len(contacts), 1)
 
295
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
296
296
 
297
297
        contacts = list(
298
298
            view.find_contacts_starting(
299
299
                self.db, email_addressesaddress="blah.example.com"))
300
 
        self.assertEqual(len(contacts), 1)
 
300
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
301
301
 
302
302
        contacts = list(
303
303
            view.find_contacts_starting(
304
304
                self.db, email_addressesaddress="berkeley"))
305
 
        self.assertEqual(len(contacts), 1)
 
305
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
306
306
 
307
307
        contacts = list(
308
308
            view.find_contacts_starting(self.db, first_name="random"))
317
317
 
318
318
        contacts = list(
319
319
            view.find_contacts_exact(self.db, first_name="Frances"))
320
 
        self.assertEqual(len(contacts), 1)
 
320
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))
321
321
 
322
322
        contacts = list(view.find_contacts_exact(self.db, birth_date="-08-23"))
323
 
        self.assertEqual(len(contacts), 1)
 
323
        self.assertEqual(len(contacts), 1, "Length of 1. %s" % (contacts,))