nosetest example in turbogears
http://www.turbogears.org/2.2/docs/main/Testing/index.html suggests use of
klass and attrs for testing a single table. What if i have multiple tables
like in many to one relationships. I want to initiate two tables in single
setup of nosetest. How to do it. I am expecting something like
class TestUser(ModelTest):
"""Unit test case for the ``User`` model."""
klass1 = model.User
attrs1 = dict(
user_name = u"ignucius",
email_address = u"[email protected]"
group = u"test" )
klass2 = model.Group
attrs2 = dict(
group_name = u"test",
)
def test_something(self):
pass
Is something like this possible? An example would help a lot.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/turbogears/-/GafxQPwxvkgJ.
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?hl=en.