def toggle_service(self):
if self.service.is_running():<EOL><INDENT>self.pause_service()<EOL><DEDENT>else:<EOL><INDENT>self.unpause_service()<EOL><DEDENT>
Convenience method for toggling the expansion service on or off.