Chris Withers wrote:
Hi (yet) again ;-)

class MyLayer:

  def setUp(self): =

  def tearDown(self):

Shrug! That will modify the class! "self" is the class here (it's convention to call it "cls" when using @classmethod).

class MyTests(TestCase):

  def setUp(self):
    self.savepoint = transaction.savepoint() = makerequest(?.app)

  def tearDown(self):


What do I put in place of the ? to get hold of the layer's app?

Zope3-dev mailing list

Reply via email to