def testResetPreferredNetworksRootRequired(self):
    interface = 'en0'
    networks = ['GuestNetwork$OPEN']
    self.mox.StubOutWithMock(wifi_network_order.os, 'geteuid')
    wifi_network_order.os.geteuid().AndReturn(501)
    self.mox.ReplayAll()
    with self.assertRaises(wifi_network_order.NotRunningAsRootError):
      wifi_network_order.ResetPreferredNetworks(interface, networks)

    self.mox.VerifyAll()
Get the gradients of the posterior distribution of X in its specific form.
dataset/ETHPy150Open google/macops/gmacpyutil/gmacpyutil/wifi_network_order_test.py/WifiNetworkOrderModuleTest.testResetPreferredNetworksRootRequired--crossover with--dataset/ETHPy150Open SheffieldML/GPy/GPy/models/ss_gplvm.py/SSGPLVM.get_X_gradients