Z książki http://www.goodreads.com/book/show/25447991-two-scoops-of-django, najlepsza książka o porgramowaniu, jaką kiedykolwiek przeczytałem:
"Don't Repeat Yourself Doesn't Apply to Writing Tests
The setUp() method is really useful for generating reusable data across all test methods in a test
class. However, sometimes we need similar but different data between test methods, which is where
we often fall into the trap of writing fancy test utilities. Or worse, we decide that rather than write
20 similar tests, we can write a single method that when passed certain arguments will handle all the
work for us.
Our favorite method of handling these actions is to just dig in and write the same or similar code
multiple times. In fact, we’ll quietly admit to copy/pasting code between tests to expedite our work."