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