Can you either inline the with blocks ("with foo() as f, bar() as b:") or use patch.multiple() ? I'm not opposed to having this nested, but I think the other way it would be cleaner.