def test_serializeDeferredSlots(self): """ Test that a slot with a deferred as its value will be flattened using the value from the deferred. """ t = tags.p(slot("test")) t.fillSlots(test=succeed(tags.em("four>"))) return self.assertFlattensTo(t, b"<p><em>four></em></p>")
def test_serializeDeferredSlots(self): """ Test that a slot with a deferred as its value will be flattened using the value from the deferred. """ t = tags.p(slot('test')) t.fillSlots(test=succeed(tags.em('four>'))) return self.assertFlattensTo(t, '<p><em>four></em></p>')