Skip to content

Commit

Permalink
'cpt' is a bad choice for an abbreviation
Browse files Browse the repository at this point in the history
  • Loading branch information
jessesnyder committed Jan 31, 2012
1 parent 7596090 commit d680f2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions experimental/shoppingbehavior/tests/test_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from StringIO import StringIO

from zope.configuration import xmlconfig
from zope import component as cpt
from zope import component
from zope import interface as zif
from plone.behavior.interfaces import IBehaviorAssignable
from plone.behavior.interfaces import IBehavior
Expand Down Expand Up @@ -37,7 +37,7 @@

class TestingAssignable(object):
zif.implements(IBehaviorAssignable)
cpt.adapts(zif.Interface)
component.adapts(zif.Interface)
enabled = [behaviors.IPriced]

def __init__(self, context):
Expand All @@ -48,7 +48,7 @@ def supports(self, behavior_interface):

def enumerateBehaviors(self):
for e in self.enabled:
yield cpt.queryUtility(IBehavior, name=e.__identifier__)
yield component.queryUtility(IBehavior, name=e.__identifier__)


class TestPricing(unittest.TestCase):
Expand All @@ -57,7 +57,7 @@ class TestPricing(unittest.TestCase):

def setUp(self):
xmlconfig.xmlconfig(StringIO(configuration))
cpt.provideAdapter(TestingAssignable)
component.provideAdapter(TestingAssignable)

def testAdaptation(self):
context = StubContext()
Expand Down

0 comments on commit d680f2a

Please sign in to comment.