class documentation
class SentenceTestsMixin: (source)
Known subclasses: twisted.positioning.test.test_sentence.MixinTests
Tests for positioning protocols and their respective sentences.
Method | test_attribute |
A sentence attribute gets the correct value, and accessing an unset attribute (which is specified as being a valid sentence attribute) gets None . |
Method | test_known |
Test the repr of an empty sentence of known type. |
Method | test_raise |
Accessing bogus attributes raises AttributeError, *even* when that attribute actually is in the sentence data. |
Method | test_raise |
Accessing a nonexistent attribute raises AttributeError. |
Method | test_unknown |
Test the repr of an empty sentence of unknown type. |
Class Variable | repr |
Undocumented |
Class Variable | sentence |
Undocumented |
Method | _expected |
Builds the expected repr for a sentence. |
A sentence attribute gets the correct value, and accessing an unset attribute (which is specified as being a valid sentence attribute) gets None
.
Accessing bogus attributes raises AttributeError, *even* when that attribute actually is in the sentence data.