Debian Codegraph @

bindings/python/tests/tests_line.py

raw symbols SCIP
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 # SPDX-FileCopyrightText: 2024 Kent Gibson <[email protected]>
3
4 from gpiod.line import Value
5 from unittest import TestCase
6
7
8 class LineValue(TestCase):
9 def test_cast_bool(self):
10 self.assertTrue(bool(Value.ACTIVE))
11 self.assertFalse(bool(Value.INACTIVE))