-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvert_style.py
More file actions
29 lines (21 loc) · 982 Bytes
/
convert_style.py
File metadata and controls
29 lines (21 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from contentstack_utils.helper import converter
from contentstack_utils.embedded.styletype import StyleType
import unittest
class TestConvertStyle(unittest.TestCase):
def setUp(self):
print("logger for ConvertStyle")
def test_converter_style_block(self):
_returns = converter.convert_style('block')
self.assertEqual(StyleType.BLOCK, _returns)
def test_converter_style_inline(self):
_returns = converter.convert_style('inline')
self.assertEqual(StyleType.INLINE, _returns)
def test_converter_style_link(self):
_returns = converter.convert_style('link')
self.assertEqual(StyleType.LINK, _returns)
def test_converter_style_display(self):
_returns = converter.convert_style('display')
self.assertEqual(StyleType.DISPLAY, _returns)
def test_converter_style_download(self):
_returns = converter.convert_style('download')
self.assertEqual(StyleType.DOWNLOAD, _returns)