Bug 997673 - Small refactor of Python cost control app tests
Merge pull request #17073 from zacc/bug_979914

Bug 997673 - Refactor of cost control python tests