# Path: bluezero/constants.py
# DBUS_OM_IFACE = 'org.freedesktop.DBus.ObjectManager'
# DBUS_PROP_IFACE = 'org.freedesktop.DBus.Properties'
# BLUEZ_SERVICE_NAME = 'org.bluez'
# ADAPTER_INTERFACE = 'org.bluez.Adapter1'
# DEVICE_INTERFACE = 'org.bluez.Device1'
# GATT_MANAGER_IFACE = 'org.bluez.GattManager1'
# GATT_PROFILE_IFACE = 'org.bluez.GattProfile1'
# GATT_SERVICE_IFACE = 'org.bluez.GattService1'
# GATT_CHRC_IFACE = 'org.bluez.GattCharacteristic1'
# GATT_DESC_IFACE = 'org.bluez.GattDescriptor1'
# LE_ADVERTISING_MANAGER_IFACE = 'org.bluez.LEAdvertisingManager1'
# LE_ADVERTISEMENT_IFACE = 'org.bluez.LEAdvertisement1'
# MEDIA_PLAYER_IFACE = 'org.bluez.MediaPlayer1'
# BLUEZERO_DBUS_NAME = 'ukBaz.bluezero'
# BLUEZERO_DBUS_OBJECT = '/ukBaz/bluezero'


import sys
import unittest
import tests.obj_data
from unittest.mock import MagicMock
from unittest.mock import patch
from bluezero import constants
        from bluezero import adapter
        """
        self.module_patcher.stop()

    def test_list_adapters(self):
        """
        Test ``Adapter.list_adapters()``
        """
        adapters = self.module_under_test.list_adapters()
        self.assertListEqual(['00:00:00:00:5A:AD'], adapters)

    def test_adapter_address(self):
        """
        Test the adapter ``address`` property.
        """
        dongle = self.module_under_test.Adapter(self.path)
        self.assertEqual(dongle.address, '00:00:00:00:5A:AD')

    def test_adapter_default(self):
        """
        Test the default ``Adapter()`` instantation gets the correct address.
        """
        dongle = self.module_under_test.Adapter()
        self.assertEqual(dongle.address, '00:00:00:00:5A:AD')

    def test_get_all(self):
        """
        Test the ``get_all()`` method for retrieving all the DBus properties.
        """
        dongle = self.module_under_test.Adapter(self.path)
        self.assertEqual(dongle.get_all(),

# Path: bluezero/constants.py
# DBUS_OM_IFACE = 'org.freedesktop.DBus.ObjectManager'
# DBUS_PROP_IFACE = 'org.freedesktop.DBus.Properties'
# BLUEZ_SERVICE_NAME = 'org.bluez'
# ADAPTER_INTERFACE = 'org.bluez.Adapter1'
# DEVICE_INTERFACE = 'org.bluez.Device1'
# GATT_MANAGER_IFACE = 'org.bluez.GattManager1'
# GATT_PROFILE_IFACE = 'org.bluez.GattProfile1'
# GATT_SERVICE_IFACE = 'org.bluez.GattService1'
# GATT_CHRC_IFACE = 'org.bluez.GattCharacteristic1'
# GATT_DESC_IFACE = 'org.bluez.GattDescriptor1'
# LE_ADVERTISING_MANAGER_IFACE = 'org.bluez.LEAdvertisingManager1'
# LE_ADVERTISEMENT_IFACE = 'org.bluez.LEAdvertisement1'
# MEDIA_PLAYER_IFACE = 'org.bluez.MediaPlayer1'
# BLUEZERO_DBUS_NAME = 'ukBaz.bluezero'
# BLUEZERO_DBUS_OBJECT = '/ukBaz/bluezero'


# Path: tests/test_adapter.py
import sys
import unittest
import tests.obj_data
from unittest.mock import MagicMock
from unittest.mock import patch
from bluezero import constants
        from bluezero import adapter

        """
        self.module_patcher.stop()

    def test_list_adapters(self):
        """
        Test ``Adapter.list_adapters()``
        """
        adapters = self.module_under_test.list_adapters()
        self.assertListEqual(['00:00:00:00:5A:AD'], adapters)

    def test_adapter_address(self):
        """
        Test the adapter ``address`` property.
        """
        dongle = self.module_under_test.Adapter(self.path)
        self.assertEqual(dongle.address, '00:00:00:00:5A:AD')

    def test_adapter_default(self):
        """
        Test the default ``Adapter()`` instantation gets the correct address.
        """
        dongle = self.module_under_test.Adapter()
        self.assertEqual(dongle.address, '00:00:00:00:5A:AD')

    def test_get_all(self):
        """
        Test the ``get_all()`` method for retrieving all the DBus properties.
        """
        dongle = self.module_under_test.Adapter(self.path)
        self.assertEqual(dongle.get_all(),

                         mock_get_all(constants.ADAPTER_INTERFACE))