| Class | MathTests | Undocumented |
| Function | selectDialect | Dictate a Banana dialect to use. |
| Function | encode | Banana encode an object using banana.Banana.sendEncoded. |
| Class | BananaTestBase | The base for test classes. It defines commonly used things and sets up a connection for testing. |
| Class | BananaTests | General banana tests. |
| Class | DialectTests | Tests for Banana's handling of dialects. |
| Class | GlobalCoderTests | Tests for the free functions banana.encode and
banana.decode. |
Dictate a Banana dialect to use.
| Parameters | protocol | A banana.Banana
instance which has not yet had a dialect negotiated. |
| dialect | A bytes
instance naming a Banana dialect to select. |
Banana encode an object using banana.Banana.sendEncoded.
| Parameters | bananaFactory | A no-argument callable which will return a new, unconnected protocol
instance to use to do the encoding (this should most likely be a banana.Banana
instance). |
| obj | The object to encode. (type: Any type supported by Banana.) | |
| Returns | A bytes
instance giving the encoded form of obj. | |