Ejemplo n.º 1
0
def test_writer_uses_original_fps():
    subs = SSAFile()
    subs.append(SSAEvent(start=0, end=10, text="Hello!"))
    subs.fps = 1000
    
    f = dedent("""\
    {0}{0}1000
    {0}{10}Hello!
    """)
    
    assert subs.to_string("microdvd") == f
Ejemplo n.º 2
0
def test_writer_uses_original_fps():
    subs = SSAFile()
    subs.append(SSAEvent(start=0, end=10, text="Hello!"))
    subs.fps = 1000

    f = dedent("""\
    {0}{0}1000
    {0}{10}Hello!
    """)

    assert subs.to_string("microdvd") == f