def assertFlattensTo(self, root, target):
        d = flattenString(None, root)
        d.addCallback(lambda s: self.assertEqual(s, target))
        return d
Assert that a root element, when flattened, is equal to a string.
dataset/ETHPy150Open twisted/twisted/twisted/web/test/_util.py/FlattenTestCase.assertFlattensTo