'Verify that wrap_fragment adds new content.'

def test_wrap_fragment(self):

    new_content = u'<p>New    Content<p>'
    fragment = self.create_fragment()
    wrapped_fragment = wrap_fragment(fragment, new_content)
    self.assertEqual(u'<p>New    Content<p>', wrapped_fragment.content)
    self.assertEqual(u'body    {background-color:red;}', wrapped_fragment.resources[0].data)
    self.assertEqual(u'alert("Hi!");', wrapped_fragment.resources[1].data)
