~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/stories/webservice/xx-derivedistroseries.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-10-07 20:51:41 UTC
  • mfrom: (14108.1.3 bug-869221)
  • Revision ID: launchpad@pqm.canonical.com-20111007205141-xkf3b1u7sbic70td
[r=julian-edwards][bug=869221][incr] Raise a proper error when a
        derived series won't be able to have an architecture to build
        architecture independent binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    >>> from lp.testing.sampledata import ADMIN_EMAIL
12
12
    >>> from canonical.launchpad.testing.pages import webservice_for_person
13
13
    >>> from canonical.launchpad.webapp.interfaces import OAuthPermission
 
14
    >>> from zope.security.proxy import removeSecurityProxy
14
15
 
15
16
    >>> login(ADMIN_EMAIL)
16
17
 
17
18
    >>> soyuz_team = factory.makeTeam(name='soyuz-team')
18
19
    >>> parent_series = factory.makeDistroSeries(name="parentseries")
 
20
    >>> arch = factory.makeDistroArchSeries(distroseries=parent_series)
 
21
    >>> removeSecurityProxy(parent_series).nominatedarchindep = arch
19
22
    >>> child_series = factory.makeDistroSeries(name='child1')
20
23
    >>> child_series_with_parent = factory.makeDistroSeries(
21
24
    ...     name='child-with-parent')