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) }
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) }