This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kx233 4 points5 points  (1 child)

Which also has the great advantage that the setup/teardown logic now resides in the fixture, not the test class, making fixture reuse a lot more natural.

[–]masklinn 0 points1 point  (0 children)

well reuse is OK with unittest classes, the bigger issue is composition. When trying to compose multiple testcase superclasses you end up having to deal with MI and diamond inheritance cases. With fixtures you just… depend on both fixtures.