Exemplo n.º 1
0
 def test_style_nonregular_width(self):
     self.assertEqual(build_style_name(width='Condensed', is_italic=False),
                      'Condensed')
     self.assertEqual(build_style_name(width='Condensed', is_italic=True),
                      'Condensed Italic')
     self.assertEqual(
         build_style_name(weight='Thin', width='Condensed',
                          is_italic=False), 'Condensed Thin')
     self.assertEqual(
         build_style_name(weight='Thin', width='Condensed', is_italic=True),
         'Condensed Thin Italic')
Exemplo n.º 2
0
 def test_style_custom(self):
     self.assertEqual(build_style_name(custom='Text', is_italic=False),
                      'Text')
     self.assertEqual(build_style_name(weight='Text', is_italic=True),
                      'Text Italic')
Exemplo n.º 3
0
 def test_style_nonregular_weight(self):
     self.assertEqual(build_style_name(weight='Thin', is_italic=False),
                      'Thin')
     self.assertEqual(build_style_name(weight='Thin', is_italic=True),
                      'Thin Italic')
Exemplo n.º 4
0
 def test_style_regular_weight(self):
     self.assertEqual(build_style_name(is_italic=False), 'Regular')
     self.assertEqual(build_style_name(is_italic=True), 'Italic')