Examples of abstracting common unittest code