~cmiller/desktopcouch/service-exits-properly

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): natalia.bidart at canonical, Natalia B. Bidart
  • Date: 2011-01-06 13:02:31 UTC
  • mfrom: (248.1.2 remove-testtools)
  • Revision ID: tarmac-20110106130231-ktkkjsh8x09z8cuu
Removed testtools, replaced with unittest.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
"""Test view."""
20
20
 
 
21
import random
 
22
import string  # pylint: disable=W0402
 
23
 
 
24
from unittest import TestCase
 
25
 
21
26
import desktopcouch.application.tests as test_environment
22
27
from desktopcouch.application import server
23
28
from desktopcouch.recordtypes.contacts import (
24
29
    CONTACT_RECORD_TYPE, view, Contact)
25
30
 
26
31
 
27
 
import testtools
28
 
import random
29
 
import string                           # pylint: disable=W0402
30
 
 
31
 
 
32
32
FRANCES_RECORD_DATA = {
33
33
    "record_type": CONTACT_RECORD_TYPE,
34
34
    "first_name": "Frances",
145
145
                "protocol": "jabber"},)}
146
146
 
147
147
 
148
 
class TestLocalFiles(testtools.TestCase):
 
148
class TestLocalFiles(TestCase):
149
149
    """Test local files."""
150
150
 
151
151
    def setUp(self):