/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_lp_api_lite.py

  • Committer: Martin Pool
  • Date: 2011-07-25 02:38:17 UTC
  • mto: This revision was merged to the branch mainline in revision 6043.
  • Revision ID: mbp@canonical.com-20110725023817-pgjxontfur6yti87
lp_api_lite tests update for move of Feature api into tests.features

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import socket
21
21
 
22
22
from bzrlib import tests
 
23
from bzrlib.tests import features
23
24
from bzrlib.plugins import launchpad
24
25
from bzrlib.plugins.launchpad import lp_api_lite
25
26
 
26
 
class _JSONParserFeature(tests.Feature):
 
27
 
 
28
class _JSONParserFeature(features.Feature):
27
29
 
28
30
    def _probe(self):
29
31
        return lp_api_lite.json is not None
31
33
    def feature_name(self):
32
34
        return 'simplejson or json'
33
35
 
 
36
 
34
37
JSONParserFeature = _JSONParserFeature()
35
38
 
 
39
 
36
40
_example_response = r"""
37
41
{
38
42
    "total_size": 2,