Exemplo n.º 1
0
 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&gt;</em></p>")
Exemplo n.º 2
0
 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&gt;</em></p>')