mirror of
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
synced 2026-10-24 00:48:53 +03:00
Several files under bindings/python/ have wrong license tags. In general: - Makefiles should be covered by GPL - all python sources under bindings/python/gpiod/ and bindings/python/tests/ that are part of importable modules should be licensed under LGPL - executable examples should be licensed under GPL Reported-by: Vincent Fazio <vfazio@xes-inc.com> Closes: https://github.com/brgl/libgpiod/issues/110 Acked-by: Vincent Fazio <vfazio@xes-inc.com> Link: https://lore.kernel.org/r/20241127150529.126896-1-brgl@bgdev.pl Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
13 lines
329 B
Python
13 lines
329 B
Python
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# SPDX-FileCopyrightText: 2024 Kent Gibson <warthog618@gmail.com>
|
|
|
|
from unittest import TestCase
|
|
|
|
from gpiod.line import Value
|
|
|
|
|
|
class LineValue(TestCase):
|
|
def test_cast_bool(self) -> None:
|
|
self.assertTrue(bool(Value.ACTIVE))
|
|
self.assertFalse(bool(Value.INACTIVE))
|