Bug 997673 - Small refactor of Python cost control app tests