'Create a fragment.'

def create_fragment(self, content=None):

    fragment = Fragment(content)
    fragment.add_css(u'body    {background-color:red;}')
    fragment.add_javascript(u'alert("Hi!");')
    return fragment
