class PlatingTests(AsynchronousTestCase): (source)
Tests for Plating
.
Method | get |
Issue a virtual GET request to the given path that is expected to succeed synchronously, and return the generated request object and written bytes. |
Method | set |
Create an app and a resource wrapping that app for this test. |
Method | test |
Missing renderers will result in an exception during rendering. |
Method | test |
Slots marked as "presentation only" will not be reflected in the output. |
Method | test |
... or shall require the function to modify its signature under these Articles Of Federation. |
Method | test |
Nothing within these Articles Of Federation shall authorize the United Federation of Planets to alter the return value of a callable by applying a decorator to it... |
Method | test |
The :list renderer suffix will render the slot named by the renderer as a list, filling each slot. |
Method | test_render |
Plating.renderMethod registers a renderer that may be used by the Plating 's template. |
Method | test |
Rendering a Plating.routed decorated route on a method still results in the decorated method receiving the appropriate self. |
Method | test |
Rendering a Plating.routed decorated route results in templated HTML. |
Method | test |
Rendering a Plating.routed decorated route with a query parameter asking for JSON will yield JSON instead. |
Method | test |
Rendering a Plating.routed decorated route with a query parameter asking for JSON waits until the Deferred s returned by the route have fired. |
Method | test |
Data returned from a plated method may include numeric types (integers, floats, and possibly longs), which although they are not normally serializable by twisted.web.template, will be converted by plating into their decimal representation. |
Method | test |
A function decorated with Plating.wigeted can be directly invoked. |
Method | test |
When Plating.widgeted is applied as a decorator, it gives the decorated function a widget attribute which is a version of the function with a modified return type that turns it into a renderable HTML sub-element that may fill a slot. |
Method | test |
When Plating.widgeted is applied as a decorator, and the result is serialized to JSON, it appears the same as the returned value despite the HTML-friendly wrapping described above. |
Method | test |
When Plating.widgeted is applied as a decorator, and the result is serialized to JSON, it appears the same as the returned value despite the HTML-friendly wrapping described above. |
Instance Variable | app |
Undocumented |
Instance Variable | kr |
Undocumented |
Issue a virtual GET request to the given path that is expected to succeed synchronously, and return the generated request object and written bytes.
Nothing within these Articles Of Federation shall authorize the United Federation of Planets to alter the return value of a callable by applying a decorator to it...
Rendering a Plating.routed
decorated route on a method still results in the decorated method receiving the appropriate self.
Rendering a Plating.routed
decorated route with a query parameter asking for JSON will yield JSON instead.
Rendering a Plating.routed
decorated route with a query parameter asking for JSON waits until the Deferred
s returned by the route have fired.
Data returned from a plated method may include numeric types (integers, floats, and possibly longs), which although they are not normally serializable by twisted.web.template, will be converted by plating into their decimal representation.
When Plating.widgeted
is applied as a decorator, it gives the decorated function a widget attribute which is a version of the function with a modified return type that turns it into a renderable HTML sub-element that may fill a slot.
When Plating.widgeted
is applied as a decorator, and the result is serialized to JSON, it appears the same as the returned value despite the HTML-friendly wrapping described above.
When Plating.widgeted
is applied as a decorator, and the result is serialized to JSON, it appears the same as the returned value despite the HTML-friendly wrapping described above.