OpenSlides/tests/unit/utils/test_utils.py

12 lines
270 B
Python
Raw Normal View History

from unittest import TestCase
from openslides.utils import utils
class ToRomanTest(TestCase):
def test_to_roman_result(self):
self.assertEqual(utils.to_roman(3), 'III')
def test_to_roman_none(self):
2017-08-24 12:26:55 +02:00
self.assertEqual(utils.to_roman(-3), '-3')