Oke almost there. I must admit that the 'fake module' part is a bit
confusing in the example. You don't it need in a normal setup where you
import you model. In youre project you just use the following code:

from turbogears import testutil

from organizer import model
from organizer.model import *

class TestEvent(testutil.DBTest):
        model = model

        def test_creation(self):
                e=Event(name="Event Name")
                assert e.name == "Event Name"
                assert Event.get(1) == e
                assert e.completion_date == None


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to