Пример #1
0
 def test_4(self):
     self.assertEqual(segmentation('cFE'), {
         'property-name': 'c',
         'important': False,
         'abbr': 'cFE',
         'color': 'FE'
     })
Пример #2
0
 def test_38(self):
     self.assertEqual(
         segmentation('w.0'), {
             'property-name': 'w',
             'important': False,
             'abbr': 'w.0',
             'type-value': 0.0
         })
Пример #3
0
 def test_39(self):
     self.assertEqual(
         segmentation('c:f'), {
             'property-name': 'c',
             'important': False,
             'abbr': 'c:f',
             'keyword-value': 'f'
         })
Пример #4
0
 def test_18(self):
     self.assertEqual(
         segmentation('po:a!'), {
             'property-name': 'po',
             'important': True,
             'abbr': 'po:a!',
             'keyword-value': 'a'
         })
Пример #5
0
 def test_6(self):
     self.assertEqual(
         segmentation('p-.5'), {
             'property-name': 'p',
             'important': False,
             'abbr': 'p-.5',
             'type-value': -0.5
         })
Пример #6
0
 def test_14(self):
     self.assertEqual(
         segmentation('pos:a'), {
             'property-name': 'pos',
             'important': False,
             'abbr': 'pos:a',
             'keyword-value': 'a'
         })
Пример #7
0
 def test_1(self):
     self.assertEqual(
         segmentation('c#FA5EC1'), {
             'property-name': 'c',
             'important': False,
             'abbr': 'c#FA5EC1',
             'color': 'FA5EC1'
         })
Пример #8
0
 def test_19(self):
     #todo: удалить тест, он такой же как 18
     self.assertEqual(
         segmentation('pos:a!'), {
             'property-name': 'pos',
             'important': True,
             'abbr': 'pos:a!',
             'keyword-value': 'a'
         })
Пример #9
0
 def test_8(self):
     self.assertEqual(
         segmentation('h2pe'), {
             'property-name': 'h',
             'important': False,
             'abbr': 'h2pe',
             'type-value': 2,
             'type-name': 'pe'
         })
Пример #10
0
 def test_42(self):
     self.assertEqual(
         segmentation('c0F.5'), {
             'property-name': 'c',
             'important': False,
             'abbr': 'c0F',
             'color': '0F',
             'color_alpha': '.5'
         })
Пример #11
0
 def test_5(self):
     self.assertEqual(
         segmentation('ml10'), {
             'property-name': 'ml',
             'important': False,
             'abbr': 'ml10',
             'type-value': 10,
             'color': '10'
         })
Пример #12
0
 def test_32(self):
     self.assertEqual(
         segmentation('h-t2pt'), {
             'property-name': 'h-t',
             'important': False,
             'abbr': 'h-t2pt',
             'type-value': 2,
             'type-name': 'pt'
         })
Пример #13
0
 def test_44(self):
     self.assertEqual(
         segmentation('w10%'), {
             'property-name': 'w',
             'important': False,
             'type-value': 10,
             'type-name': '%',
             'abbr': 'w10%'
         })
Пример #14
0
 def test_2(self):
     self.assertEqual(
         segmentation('c0'), {
             'property-name': 'c',
             'important': False,
             'abbr': 'c0',
             'color': '0',
             'type-value': 0
         })
Пример #15
0
 def test_19(self):
     #todo: удалить тест, он такой же как 18
     self.assertEqual(segmentation('pos:a!'),
         {'property-name': 'pos', 'important': True, 'abbr': 'pos:a!', 'keyword-value': 'a'})
Пример #16
0
 def test_17(self):
     self.assertEqual(segmentation('posa!'),
         {'property-value': 'posa', 'important': True, 'abbr': 'posa!'})
Пример #17
0
 def test_14(self):
     self.assertEqual(segmentation('pos:a'),
         {'property-name': 'pos', 'important': False, 'abbr': 'pos:a', 'keyword-value': 'a'})
Пример #18
0
 def test_9(self):
     self.assertEqual(segmentation('h2pt'),
         {'property-name': 'h', 'important': False, 'abbr': 'h2pt', 'type-value': 2, 'type-name': 'pt'})
Пример #19
0
 def test_5(self):
     self.assertEqual(segmentation('ml10'),
         {'property-name': 'ml', 'important': False, 'abbr': 'ml10', 'type-value': 10, 'color': '10'})
Пример #20
0
 def test_2(self):
     self.assertEqual(segmentation('c0'),
         {'property-name': 'c', 'important': False, 'abbr': 'c0', 'color': '0', 'type-value': 0})
Пример #21
0
 def test_17(self):
     self.assertEqual(segmentation('posa!'), {
         'property-value': 'posa',
         'important': True,
         'abbr': 'posa!'
     })
Пример #22
0
 def test_20(self):
     self.assertEqual(segmentation('pos:!'), {
         'property-name': 'pos',
         'important': True,
         'abbr': 'pos:!'
     })
Пример #23
0
 def test_21(self):
     self.assertEqual(segmentation('h'), {
         'property-value': 'h',
         'important': False,
         'abbr': 'h'
     })
Пример #24
0
 def test_44(self):
     self.assertEqual(segmentation('w10%'),
         {'property-name': 'w', 'important': False, 'type-value': 10,
         'type-name': '%', 'abbr': 'w10%'})
Пример #25
0
 def test_15(self):
     self.assertEqual(segmentation('pos:'), {
         'property-name': 'pos',
         'important': False,
         'abbr': 'pos:'
     })
Пример #26
0
 def test_1(self):
     self.assertEqual(segmentation('c#FA5EC1'),
         {'property-name': 'c', 'important': False, 'abbr': 'c#FA5EC1', 'color': 'FA5EC1'})
Пример #27
0
 def test_12(self):
     self.assertEqual(segmentation('posa'), {
         'property-value': 'posa',
         'important': False,
         'abbr': 'posa'
     })
Пример #28
0
 def test_4(self):
     self.assertEqual(segmentation('cFE'),
         {'property-name': 'c', 'important': False, 'abbr': 'cFE', 'color': 'FE'})
Пример #29
0
 def test_42(self):
     self.assertEqual(segmentation('c0F.5'),
         {'property-name': 'c', 'important': False, 'abbr': 'c0F', 'color': '0F', 'color_alpha': '.5'})
Пример #30
0
 def test_6(self):
     self.assertEqual(segmentation('p-.5'), 
         {'property-name': 'p', 'important': False, 'abbr': 'p-.5', 'type-value': -0.5})
Пример #31
0
 def test_21(self):
     self.assertEqual(segmentation('h'),
         {'property-value': 'h', 'important': False, 'abbr': 'h'})
Пример #32
0
 def test_12(self):
     self.assertEqual(segmentation('posa'),
         {'property-value': 'posa', 'important': False, 'abbr': 'posa'})
Пример #33
0
 def test_22(self):
     self.assertEqual(segmentation('h:'),
         {'property-name': 'h', 'important': False, 'abbr': 'h:'})
Пример #34
0
 def test_15(self):
     self.assertEqual(segmentation('pos:'),
         {'property-name': 'pos', 'important': False, 'abbr': 'pos:'})
Пример #35
0
 def test_38(self):
     self.assertEqual(segmentation('w.0'),
         {'property-name': 'w', 'important': False, 'abbr': 'w.0', 'type-value': 0.0})
Пример #36
0
 def test_18(self):
     self.assertEqual(segmentation('po:a!'),
         {'property-name': 'po', 'important': True, 'abbr': 'po:a!', 'keyword-value': 'a'})
Пример #37
0
 def test_39(self):
     self.assertEqual(segmentation('c:f'),
         {'property-name': 'c', 'important': False, 'abbr': 'c:f', 'keyword-value': 'f'})
Пример #38
0
 def test_20(self):
     self.assertEqual(segmentation('pos:!'),
         {'property-name': 'pos', 'important': True, 'abbr': 'pos:!'})
Пример #39
0
 def test_22(self):
     self.assertEqual(segmentation('h:'), {
         'property-name': 'h',
         'important': False,
         'abbr': 'h:'
     })