Here's the test I added:
=== modified file 'lib/lp/bugs/stories/bug-tags/xx-official-bug-tags.txt' --- lib/lp/bugs/stories/bug-tags/xx-official-bug-tags.txt 2009-09-22 19:57:40 +0000 +++ lib/lp/bugs/stories/bug-tags/xx-official-bug-tags.txt 2009-11-20 16:46:24 +0000 @@ -139,6 +139,53 @@ unofficial-tag-09 unofficial-tag-10
+The 10 unofficial tags will be the 10 most popular tags. To demonstrate +this, two additional bugs are created and unofficial tags 11 and 12 are +added to those bugs. + + >>> login('<email address hidden>') + >>> watersocks = factory.makeProduct(name='watersocks') + >>> watersocks_bugs_url = canonical_url(watersocks, rootsite='bugs') + >>> watersocks.official_bug_tags = [ + ... u'official-tag-%02d' % idx for idx in range(1, 13)] + >>> ws_bug = factory.makeBug(product=watersocks) + >>> ws_bug.tags = [ + ... u'unofficial-tag-%02d' % idx for idx in range(1, 13)] + >>> ws_bug_two = factory.makeBug(product=watersocks) + >>> ws_bug_two.tags = [u'unofficial-tag-11', u'unofficial-tag-12'] + >>> ws_bug_three = factory.makeBug(product=watersocks) + >>> ws_bug_three.tags = [u'unofficial-tag-11', u'unofficial-tag-12'] + >>> transaction.commit() + >>> logout() + + >>> browser.open(watersocks_bugs_url + '/+bugtarget-portlet-tags-content') + >>> print_tags_portlet(browser.contents) + Tags + ---- + official-tag-01 + official-tag-02 + official-tag-03 + official-tag-04 + official-tag-05 + official-tag-06 + official-tag-07 + official-tag-08 + official-tag-09 + official-tag-10 + official-tag-11 + official-tag-12 + unofficial-tag-01 + unofficial-tag-02 + unofficial-tag-03 + unofficial-tag-04 + unofficial-tag-05 + unofficial-tag-06 + unofficial-tag-07 + unofficial-tag-08 + unofficial-tag-11 + unofficial-tag-12 + + == Entering Official Tags ==
=== Available Official Tags in Javascript ===
« Back to merge proposal
Here's the test I added:
=== modified file 'lib/lp/ bugs/stories/ bug-tags/ xx-official- bug-tags. txt' bugs/stories/ bug-tags/ xx-official- bug-tags. txt 2009-09-22 19:57:40 +0000 bugs/stories/ bug-tags/ xx-official- bug-tags. txt 2009-11-20 16:46:24 +0000 -tag-09 -tag-10
--- lib/lp/
+++ lib/lp/
@@ -139,6 +139,53 @@
unofficial
unofficial
+The 10 unofficial tags will be the 10 most popular tags. To demonstrate makeProduct( name='watersock s') url(watersocks, rootsite='bugs') official_ bug_tags = [ tag-%02d' % idx for idx in range(1, 13)] makeBug( product= watersocks) tag-%02d' % idx for idx in range(1, 13)] makeBug( product= watersocks) tag-11' , u'unofficial- tag-12' ] makeBug( product= watersocks) tag-11' , u'unofficial- tag-12' ] commit( ) open(watersocks _bugs_url + '/+bugtarget- portlet- tags-content' ) portlet( browser. contents)
+this, two additional bugs are created and unofficial tags 11 and 12 are
+added to those bugs.
+
+ >>> login('<email address hidden>')
+ >>> watersocks = factory.
+ >>> watersocks_bugs_url = canonical_
+ >>> watersocks.
+ ... u'official-
+ >>> ws_bug = factory.
+ >>> ws_bug.tags = [
+ ... u'unofficial-
+ >>> ws_bug_two = factory.
+ >>> ws_bug_two.tags = [u'unofficial-
+ >>> ws_bug_three = factory.
+ >>> ws_bug_three.tags = [u'unofficial-
+ >>> transaction.
+ >>> logout()
+
+ >>> browser.
+ >>> print_tags_
+ Tags
+ ----
+ official-tag-01
+ official-tag-02
+ official-tag-03
+ official-tag-04
+ official-tag-05
+ official-tag-06
+ official-tag-07
+ official-tag-08
+ official-tag-09
+ official-tag-10
+ official-tag-11
+ official-tag-12
+ unofficial-tag-01
+ unofficial-tag-02
+ unofficial-tag-03
+ unofficial-tag-04
+ unofficial-tag-05
+ unofficial-tag-06
+ unofficial-tag-07
+ unofficial-tag-08
+ unofficial-tag-11
+ unofficial-tag-12
+
+
== Entering Official Tags ==
=== Available Official Tags in Javascript ===