mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 10:05:28 +03:00
ce7e24b924
The entire public api is covered with documentation in two languages - Russian and English. the library now supports the latest three versions of python - 3.12, 3.13 and 3.14 minor design changes: now, when a Boolean flag is entered, its value is an empty string, not None. tests have been adapted to the supported versions of python, readmi has been redesigned in two languages, German is no longer available.
22 lines
812 B
Python
22 lines
812 B
Python
import unittest
|
|
|
|
from argenta.app.dividing_line import DynamicDividingLine, StaticDividingLine
|
|
|
|
|
|
class TestDividingLine(unittest.TestCase):
|
|
def test_get_static_dividing_line_full_line(self):
|
|
line = StaticDividingLine('-')
|
|
self.assertEqual(line.get_full_static_line(is_override=True).count('-'), 25)
|
|
|
|
def test_get_dynamic_dividing_line_full_line(self):
|
|
line = DynamicDividingLine()
|
|
self.assertEqual(line.get_full_dynamic_line(length=20, is_override=True).count('-'), 20)
|
|
|
|
def test_get_dividing_line_unit_part(self):
|
|
line = StaticDividingLine('')
|
|
self.assertEqual(line.get_unit_part(), ' ')
|
|
|
|
def test_get_dividing_line2_unit_part(self):
|
|
line = StaticDividingLine('+-0987654321!@#$%^&*()_')
|
|
self.assertEqual(line.get_unit_part(), '+')
|