'Non-breaking spaces are turned to normal spaces in code sample
extraction.'

def test_bug819999(self):

    rev = revision(is_approved=True, save=True, content='\n                                                <h2    id="bug819999">Bug    819999</h2>\n                                                <pre    class="brush:    css">\n                                                .widget    select,\n                                                .no-widget    .select    {\n                                                &nbsp;    position    :    absolute;\n                                                &nbsp;    left&nbsp;&nbsp;&nbsp;&nbsp;    :    -5000em;\n                                                &nbsp;    height&nbsp;&nbsp;    :    0;\n                                                &nbsp;    overflow    :    hidden;\n                                                }\n                                                </pre>\n                                ')
    result = rev.document.extract.code_sample('bug819999')
    ok_((result['css'].find(u'\xa0') == (-1)))
