Ejemplo n.º 1
0
def test_supported_lights():
    """The supported_lights() classmethod returns a list of
    USBLight concrete subclasses.
    """
    supported_lights = USBLight.supported_lights()

    assert isinstance(supported_lights, list)
    for light in supported_lights:
        assert issubclass(light, USBLight)
Ejemplo n.º 2
0
def supported_lights() -> list:
    """A list of supported USBLight subclasses."""

    return USBLight.supported_lights()