On Thu, Aug 18, 2005, Alexander Dvoretskiy wrote: > > I face difficulties when assert strings with (important for > indenting) leading spaces. How can I understand from the code > there is no clear opinion on where to trim strings in tests. For example > I can't use assertSelection to check string like > " some text" because expected value is trimmed and actual is not. > > I suggest > 1. Remove all the implicit trimming and removeNbsp calls, > 2. Add special assertions like assertTrimedText. > > If nobody has objection I will code this and send a patch.
Objection! ;-) HTML output trims spaces -- I've run into a few bugs because of this. I'd much rather the default do the trimming just like HTML display. You should create assertUntrimmedText. (The other reason, of course, is that changing semantics is usually a Bad Idea and requires considerable justification -- I don't think you've met that standard yet.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ The way to build large Python applications is to componentize and loosely-couple the hell out of everything. _______________________________________________ Selenium-devel mailing list Selenium-devel@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-devel