25 @@ -72,13 +72,13 @@
26 ==============
27
28 A product or distribution may be officially supported by the community using
29 -the Answer Tracker. This status is set by the official_answers attribute on
30 +the Answer Tracker. This status is set by the answers_usage attribute on
31 the IProduct and IDistribution.
32
33 - >>> ubuntu.official_answers
34 - True
35 - >>> firefox.official_answers
36 - True
37 + >>> ubuntu.answers_usage.name
38 + 'LAUNCHPAD'
39 + >>> firefox.answers_usage.name
40 + 'LAUNCHPAD'
I'd rather you print these than just getting the value.
Hm, how does this work? If you're printing the value here, why are you still getting quotes?
So I think I'd rather you print all the values instead of getting them as strings, and I think you might need to run these tests to make sure you're getting the right values. I suspect in some case you're printing something and expecting the quoted value instead of the string.
Thanks for updating the doctests. One more doctest up to date.
25 @@ -72,13 +72,13 @@ official_ answers official_ answers answers_ usage.name answers_ usage.name
26 ==============
27
28 A product or distribution may be officially supported by the community using
29 -the Answer Tracker. This status is set by the official_answers attribute on
30 +the Answer Tracker. This status is set by the answers_usage attribute on
31 the IProduct and IDistribution.
32
33 - >>> ubuntu.
34 - True
35 - >>> firefox.
36 - True
37 + >>> ubuntu.
38 + 'LAUNCHPAD'
39 + >>> firefox.
40 + 'LAUNCHPAD'
I'd rather you print these than just getting the value.
342 === modified file 'lib/lp/ registry/ browser/ tests/productse ries-views. txt' registry/ browser/ tests/productse ries-views. txt 2010-08-27 19:19:27 +0000 registry/ browser/ tests/productse ries-views. txt 2010-09-02 16:47:49 +0000 volvedMenu when product. owner) official_ answers = True official_ blueprints = True answers_ usage = ServiceUsage. LAUNCHPAD blueprints_ usage = ServiceUsage. LAUNCHPAD official_ malone = True official_ rosetta = True answers blueprints usage.name _usage. name
343 --- lib/lp/
344 +++ lib/lp/
345 @@ -23,18 +23,19 @@
346 The ProductSeries involvement view uses the ProductSeriesIn
347 rendering links:
348
349 + >>> from lp.app.enums import ServiceUsage
350 >>> login_person(
351 - >>> product.
352 - >>> product.
353 + >>> product.
354 + >>> product.
355 >>> product.
356 >>> product.
357 >>> view = create_view(series, '+get-involved')
358
359 - # official_answers is always false for product series.
360 - >>> print view.official_
361 - False
362 - >>> print view.official_
363 - True
364 + # answers_usage is never LAUNCHPAD for product series.
365 + >>> print view.answers_
366 + UNKNOWN
367 + >>> print view.blueprints
368 + 'LAUNCHPAD'
Hm, how does this work? If you're printing the value here, why are you still getting quotes?
So I think I'd rather you print all the values instead of getting them as strings, and I think you might need to run these tests to make sure you're getting the right values. I suspect in some case you're printing something and expecting the quoted value instead of the string.
Thanks for updating the doctests. One more doctest up to date.