~divmod-dev/divmod.org/combinator-wants-user-site-packages-3002

« back to all changes in this revision

Viewing changes to Quotient/xquotient/test/historic/test_grabberconfiguration1to2.py

  • Committer: exarkun
  • Date: 2009-07-16 00:52:55 UTC
  • Revision ID: svn-v4:866e43f7-fbfc-0310-8f2a-ec88d1da2979:trunk:17773
Merge quotient-scheduler-2925

Author: exarkun
Reviewer: mithrandi
Fixes: #2925

Remove all code from Quotient which instantiates Schedulers or SubSchedulers and
upgrade away persistent attributes which refer to existing such items.  Replace
this with simple adaption of Stores to IScheduler where necessary.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from axiom.test.historic import stubloader
2
2
from xquotient.grabber import GrabberConfiguration
3
 
from axiom.scheduler import SubScheduler
4
3
from xmantissa.webapp import PrivateApplication
5
4
from xquotient.mail import DeliveryAgent
6
5
 
10
9
        Ensure upgraded fields refer to correct items.
11
10
        """
12
11
        gc = self.store.findUnique(GrabberConfiguration)
13
 
        self.assertEqual(gc.scheduler, self.store.findUnique(SubScheduler))
14
12
        self.assertEqual(gc.privateApplication, self.store.findUnique(PrivateApplication))
15
13
        self.assertEqual(gc.deliveryAgent, self.store.findUnique(DeliveryAgent))