Part of lp.registry.tests.test_project_milestone View In Hierarchy
Setup of several milestones and associated data.
A project milestone aggreates information from similar product milestones.
This class creates:
  - up to three milestones in three products which belong to the
    Gnome project
  - specs and bugs in these products and associates them with the
    milestones.
Visibility:
  - All milestones named '1.1' are active
  - One milestone named '1.2' is active, the other is not active
  - All milestones named '1.3' are not active
Additionally, a milestone with a "typo" in its name and a milestone
for firefox, i.e., for the mozilla project, named '1.1' is created.
    
    
    | Method | __init__ | If helper_only is True, set up it only as a helper class. | 
| Method | setUp | Login an admin user to perform the tests. | 
| Method | createProductMilestone | Create a milestone in the trunk series of a product. | 
| Method | test_milestone_name | The names of project milestones. | 
| Method | test_milestone_date_expected | The dateexpected attribute. | 
| Method | test_milestone_activity | A project milestone is active, if at least one product milestone | 
| Method | test_no_foreign_milestones | Milestones in "foreign" products. | 
| Method | createSpecification | Create a specification, assigned to a milestone, for a product. | 
| Method | test_milestone_specifications | Specifications of a project milestone. | 
| Method | test_milestone_bugtasks | Bugtasks and project milestones. | 
| Method | setUpProjectMilestoneTests | Create product milestones for project milestone doctests. | 
| Method | _createProductBugtask | Create a bugtask for a product, assign the task to a milestone. | 
| Method | _createProductSeriesBugtask | Create a bugtask for a productseries, assign it to a milestone. | 
A project milestone named A exists, if at least one product of this
project has a milestone named A.
dateexpected is set to min(productmilestones.dateexpected).
Milestones from products which do not belong to a project are not returned by project.milestones and project.all_milestones.
Specifications defined for products and assigned to a milestone are also assigned to the milestone of the project.