hi,
i am trying to do the following:
class TestGetOneContactsController(TestController):
def test_get_one(self):
contact = DBSession.query(Contact).first()
print contact.id
print contact.full_name
print contact.given_name
print contact.family_name
response = self.app.get("/contacts/%s" % contact.id)
msg = contact.given_name
assert_true(msg in response)
the print statements prints out the data properly. but once it hits
the response statement, the test is failing b/c genshi is having
difficulties evaluating full_name: 'UndefinedError: None has no member
named "full_name"'.
please let me know what going on. i have been struggling with testing
in turbogears.
thanks,
steve
--
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?hl=en.