예제 #1
0
func (s *MPDSuite) TestFullOnDemandProfileWriteToString() {
	m := OnDemandProfile()
	assert.NotNil(s.T(), m)
	xmlStr, err := m.WriteToString()
	assert.Nil(s.T(), err)
	expectedXML := testfixtures.LoadFixture("fixtures/ondemand_profile.mpd")
	assert.Equal(s.T(), (string)(expectedXML), xmlStr)
}
예제 #2
0
func (s *MPDReadWriteSuite) TestReadFromStringOnDemandProfile() {
	xmlStr := testfixtures.LoadFixture("fixtures/ondemand_profile.mpd")
	m, err := ReadFromString(xmlStr)
	assert.NotNil(s.T(), m)
	assert.Nil(s.T(), err)
}