def METHOD_NAME(self):
    with TemporaryFile("w+", newline='') as fileobj:
        writer = csv.writer(fileobj)
        writer.writerow(['a', '\U0001F642','b'])
        expected = 'a,\U0001F642,b'
        fileobj.seek(0)
        self.assertEqual(fileobj.read(),
                         expected + writer.dialect.lineterminator)