>> + self.failUnlessEqual(
>> + self.name_blacklist_match("barfoo"),
>> + self.foo_exp.id)
>
> from https://dev.launchpad.net/TestsStyleGuide:
> When asserting for equality use the form assertEqual
> Can you update all these old tests to assertEqual?
>> + self.failUnless Equal( blacklist_ match(" barfoo" ), /dev.launchpad. net/TestsStyleG uide:
>> + self.name_
>> + self.foo_exp.id)
>
> from https:/
> When asserting for equality use the form assertEqual
> Can you update all these old tests to assertEqual?
This might be nicer still as
self.assertThat ('barfoo' , IsBlacklisted())
(with a trivial IsBlacklisted matcher).
-Rob