When to use fixtures as opposed to simple functions