Right. Instead of the if statement, assert that len(result.stdout) > 0 and proceed with the test