~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/__init__.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-28 15:33:41 UTC
  • mfrom: (13303.10.38 translations-sharing)
  • Revision ID: launchpad@pqm.canonical.com-20110728153341-9vtzil2t510lrjky
[r=jcsackett][bug=817522] +sharing-details updates all objects at
 once.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    'build_yui_unittest_suite',
16
16
    'celebrity_logged_in',
17
17
    'ExpectedException',
 
18
    'extract_lp_cache',
18
19
    'FakeTime',
19
20
    'get_lsb_information',
20
21
    'is_logged_in',
1306
1307
        self.caught_exc = exc_value
1307
1308
        return super(ExpectedException, self).__exit__(
1308
1309
            exc_type, exc_value, traceback)
 
1310
 
 
1311
 
 
1312
def extract_lp_cache(text):
 
1313
    match = re.search(r'<script>LP.cache = (\{.*\});</script>', text)
 
1314
    return simplejson.loads(match.group(1))