> > """Unit tests for `TranslationMessage`."""
> > + def test_baseline(self):
> > + message = self.factory.makeTranslationMessage()
> > + verifyObject(ITranslationMessage, message)
>
> I'd have split this test here.
Good idea. I've been letting them grow longer so they'd waste less time on setup and teardown, sort of like our old doctests, but it's not always a good thing.
> > + def test_is_diverged(self):
> > + # ITranslationMessage.is_diverged is a little helper to let you
> > + # say "message.is_diverged" which can be clearer than
> > + # "message.potemplate is not None."
> > + message = self.factory.makeTranslationMessage(force_diverged=False)
> > + self.assertFalse(message.is_diverged)
> > +
>
> And this one here.
Hi Henning,
Thanks for the review. You were right: my change to that assertion text was lost somehow. Good thing you spotted that. Hope it's fixed this time.
> > === modified file 'lib/lp/ translations/ tests/test_ translationmess age.py' translations/ tests/test_ translationmess age.py 2009-08-25 translations/ tests/test_ translationmess age.py 2010-06-19
> > --- lib/lp/
> 20:15:38 +0000
> > +++ lib/lp/
> 03:38:37 +0000
> > """Unit tests for `TranslationMes sage`." "" self): makeTranslation Message( ) ITranslationMes sage, message)
> > + def test_baseline(
> > + message = self.factory.
> > + verifyObject(
>
> I'd have split this test here.
Good idea. I've been letting them grow longer so they'd waste less time on setup and teardown, sort of like our old doctests, but it's not always a good thing.
> > + def test_is_ diverged( self): sage.is_ diverged is a little helper to let you is_diverged" which can be clearer than makeTranslation Message( force_diverged= False) e(message. is_diverged)
> > + # ITranslationMes
> > + # say "message.
> > + # "message.potemplate is not None."
> > + message = self.factory.
> > + self.assertFals
> > +
>
> And this one here.
Both split now.
Jeroen