Support for view_by_name

Since there is only one call in `assert_has_calls`, the above four lines can be simplified to:
```        
Connection._api_call = Mock(return_value={"schedules":[]})
qds.main()
Connection._api_call.assert_called_with("GET", "scheduler", params={'name':'123'})
```
and we can remove the `view_by_name_side_effect` method.