'Test enable_network_manager disabling the NetworkManager'

@mock.patch('dbus.Interface')
@mock.patch('dbus.SystemBus')
def test_toggle_networking_has_disable_nm_true(self, fake_bus, fake_interface):

    fake_bus.return_value = self.bus
    fake_interface.side_effect = self.get_interface()
    interfaces.toggle_networking(False)
    message = 'function    attr    has_disable_nm    should    be    true'
    self.assertTrue(interfaces.toggle_networking.has_disable_nm, message)
