def METHOD_NAME(self):
    super(NetworkDiscoveryForSoUDHookTestCase, self).METHOD_NAME()
    self.hook = NetworkLocationDiscoveryHook.get_hook(
        "kolibri.plugins.learn.NetworkDiscoveryForSoUDHook"
    )
    self.mock_location = mock.MagicMock(spec=NetworkLocation())
    begin_patcher = mock.patch("kolibri.core.auth.tasks.begin_request_soud_sync")
    self.mock_begin = begin_patcher.start()
    self.addCleanup(begin_patcher.stop)
    stop_patcher = mock.patch("kolibri.core.auth.tasks.stop_request_soud_sync")
    self.mock_stop = stop_patcher.start()
    self.addCleanup(stop_patcher.stop)
    get_setting_patcher = mock.patch(
        "kolibri.plugins.learn.kolibri_plugin.get_device_setting"
    )
    self.mock_get_setting = get_setting_patcher.start()
    self.mock_get_setting.return_value = True
    self.addCleanup(get_setting_patcher.stop)