<s> import unittest , sys <EOL> from dashlivesim . dashlib import dash_proxy <EOL> from dash_test_util import * <EOL> class TestMpdChange ( unittest . TestCase ) : <EOL> "<STR_LIT>" <EOL> def testMpdWithNormalStartNr ( self ) : <EOL> "<STR_LIT>" <EOL> urlParts = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> dp = dash_proxy . DashProvider ( "<STR_LIT>" , urlParts , None , VOD_CONFIG_DIR , CONTENT_ROOT , now = <NUM_LIT:0> ) <EOL> d = dp . handle_request ( ) <EOL> self . assertEqual ( len ( findAllIndexes ( '<STR_LIT>' , d ) ) , <NUM_LIT:2> ) <EOL> self . assertTrue ( d . find ( '<STR_LIT>' ) > <NUM_LIT:0> ) <EOL> def testMpdWitdStartNrIs111 ( self ) : <EOL> "<STR_LIT>" <EOL> urlParts = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> dp = dash_proxy . DashProvider ( "<STR_LIT>" , urlParts , None , VOD_CONFIG_DIR , CONTENT_ROOT , now = <NUM_LIT:0> ) <EOL> d = dp . handle_request ( ) <EOL> self . assertEqual ( len ( findAllIndexes ( '<STR_LIT>' , d ) ) , <NUM_LIT:2> ) <EOL> self . assertTrue ( d . find ( '<STR_LIT>' ) > <NUM_LIT:0> ) <EOL> def testMpdWithStartNrIs1 ( self ) : <EOL> "<STR_LIT>" <EOL> urlParts = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> dp = dash_proxy . DashProvider ( "<STR_LIT>" , urlParts , None , VOD_CONFIG_DIR , CONTENT_ROOT , now = <NUM_LIT:0> ) <EOL> d = dp . handle_request ( ) <EOL> self . assertEqual ( len ( findAllIndexes ( '<STR_LIT>' , d ) ) , <NUM_LIT:2> ) <EOL> self . assertTrue ( d . find ( '<STR_LIT>' ) > <NUM_LIT:0> ) <EOL> def testMpdWithImplicitStartNr ( self ) : <EOL> "<STR_LIT>" <EOL> urlParts = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> dp = dash_proxy . DashProvider ( "<STR_LIT>" , urlParts , None , VOD_CONFIG_DIR , CONTENT_ROOT , now = <NUM_LIT:0> ) <EOL> d = dp . handle_request ( ) <EOL> self . assertTrue ( d . find ( '<STR_LIT>' ) < <NUM_LIT:0> ) <EOL> self . assertTrue ( d . find ( '<STR_LIT>' ) > <NUM_LIT:0> ) </s>
