Coverage for io/luts/tests/test_common.py: 100%

1"""Define the unit tests for the :mod:`colour.io.luts.common` module."""

2

3 from __future__ import annotations

4

5 from colour.io.luts.common import path_to_title

6

7 __author__ = "Colour Developers"

8 __copyright__ = "Copyright 2013 Colour Developers"

9 __license__ = "BSD-3-Clause - https://opensource.org/licenses/BSD-3-Clause"

10 __maintainer__ = "Colour Developers"

11 __email__ = "colour-developers@colour-science.org"

12 __status__ = "Production"

13

14 __all__ = [

15 "TestPathToTitle",

16]

17

18

19 class TestPathToTitle:

20 """

21 Define :func:`colour.io.luts.common.path_to_title` definition unit tests

22 methods.

23 """

24

25 def test_path_to_title(self) -> None:

26 """Test :func:`colour.io.luts.common.path_to_title` definition."""

27

28 assert (

29 path_to_title("colour/io/luts/tests/resources/cinespace/RGB_1_0.5_0.25.csp")

30 == "RGB 1 0 5 0 25"

31 )