'Test the core.decode function'

def test_core_decode(self):

    filename = helper.fixture(u'unicode.txt')
    expect = core.decode(core.encode(u'unic\xf8de'))
    actual = core.read(filename).strip()
    self.assertEqual(expect, actual)
