twisted.positioning.test.test_sentence.SentenceTestsMixin(object)
class documentationtwisted.positioning.test.test_sentence
(View In Hierarchy)
Known subclasses: twisted.positioning.test.test_sentence.MixinTests
Tests for positioning protocols and their respective sentences.
Method | test_attributeAccess | 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_raiseOnMissingAttributeAccess | Accessing a nonexistent attribute raises
AttributeError . |
Method | test_raiseOnBadAttributeAccess | Accessing bogus attributes raises AttributeError , *even*
when that attribute actually is in the sentence data. |
Method | test_unknownTypeRepr | Test the repr of an empty sentence of unknown type. |
Method | test_knownTypeRepr | Test the repr of an empty sentence of known type. |
Method | _expectedRepr | 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 a nonexistent attribute raises
AttributeError
.
Accessing bogus attributes raises AttributeError
, *even*
when that attribute actually is in the sentence data.