예제 #1
0
파일: webvtt.py 프로젝트: glut23/webvtt-py
 def test_get_styles_as_text(self):
     style = Style()
     style.lines = ['::cue(b) {', '  color: peachpuff;', '}']
     self.assertEqual(
         style.text,
         '::cue(b) {color: peachpuff;}'
     )
예제 #2
0
 def test_get_styles_as_text(self):
     style = Style()
     style.lines = ['::cue(b) {', '  color: peachpuff;', '}']
     self.assertEqual(
         style.text,
         '::cue(b) {color: peachpuff;}'
     )
예제 #3
0
파일: webvtt.py 프로젝트: glut23/webvtt-py
 def test_set_styles_from_text(self):
     style = Style()
     style.text = '::cue(b) {\n  color: peachpuff;\n}'
     self.assertListEqual(
         style.lines,
         ['::cue(b) {', '  color: peachpuff;', '}']
     )
예제 #4
0
 def test_set_styles_from_text(self):
     style = Style()
     style.text = '::cue(b) {\n  color: peachpuff;\n}'
     self.assertListEqual(
         style.lines,
         ['::cue(b) {', '  color: peachpuff;', '}']
     )