I recently found some duplicated expectations here (bug 93351) and here (bug 93352). Would be nice if you could prevent this to happen before landing the patch. Maybe it can be done by the style-checker.
Seems like a reasonable request.
I think this is basically a dup of bug 88442. *** This bug has been marked as a duplicate of bug 88442 ***