def test_update_status(self, mock_oauthhandler): with patch.object(API, 'update_status') as mock_api: update_status("Status") mock_api.assert_called_once_with(status="Status")
def test_update_status(self, mock_oauthhandler): with patch.object(API, 'update_status') as mock_api: update_status("Status") assert not mock_api.called