Test-driven development

January 8, 2007

First they gave us test scripts. Then, they taught us integration tests. The XP gurus extolled the virtues of unit tests. The test gurues hammered on about functional tests. The python heads brought us DocTests. All of this is nothing, however, compared to IQ-Test-driven development!

>>> obj = portal.restrictedTraverse('/my/object')
>>> context = portal.restrictedTraverse('/some/folder')
>>> wrapped = obj.__of__(context)

 Whoooa! __of__() is an advanced function. I can't let you do
 that Dave, unless you can answer the following two questions
 right:

    (1) What is the difference between Acquisition.Explicit and Acquisition.Implicit?
    (2) What is air speed velocity of a swallow carrying a coconut?

Type your answers below. You have 2 minutes.
?>

:)

One Response to “Test-driven development”

  1. An African or a European swallow?

Leave a Reply