def METHOD_NAME(self):
    from music21 import stream
    from music21 import note
    from music21 import converter
    s = stream.Stream()
    n1 = note.Note('d2', quarterLength=2.0)
    s.append(n1)
    s.append(note.Note('g~6', quarterLength=0.25))
    temp = converter.freezeStr(s)
    post = converter.thawStr(temp)
    self.assertEqual(len(post.notes), 2)
    self.assertEqual(str(post.notes[0].pitch), 'D2')