class ListOfTestsMixin:
Known subclasses: twisted.test.test_amp.ListOfDateTimeTests
, twisted.test.test_amp.ListOfDecimalNanTests
, twisted.test.test_amp.ListOfDecimalTests
, twisted.test.test_amp.ListOfIntegersTests
, twisted.test.test_amp.ListOfStringsTests
, twisted.test.test_amp.ListOfUnicodeTests
Base class for testing ListOf
, a parameterized zero-or-more argument type.
Method | test_from |
ListOf.fromBox reverses the operation performed by ListOf.toBox . |
Method | test_to |
ListOf.toBox extracts the list of objects from the objects dictionary passed to it, using the name key also passed to it, serializes each of the elements in that list using the Argument instance previously passed to its initializer, combines the serialized results, and inserts the result into the ... |
Instance Variable | element |
Subclasses should set this to an Argument instance. The tests will make a ListOf using this. |
Instance Variable | objects |
Subclasses should set this to a dictionary with the same keys as strings -- as NATIVE strings -- and with values which are the lists which should serialize to the values in the strings dictionary. |
Instance Variable | strings |
Subclasses should set this to a dictionary mapping some number of keys -- as BYTE strings -- to the correct serialized form for some example values. These should agree with what elementType produces/accepts. |
twisted.test.test_amp.ListOfDecimalNanTests
ListOf.fromBox
reverses the operation performed by ListOf.toBox
.
ListOf.toBox
extracts the list of objects from the objects dictionary passed to it, using the name key also passed to it, serializes each of the elements in that list using the Argument
instance previously passed to its initializer, combines the serialized results, and inserts the result into the strings dictionary using the same name key.
twisted.test.test_amp.ListOfDateTimeTests
, twisted.test.test_amp.ListOfDecimalNanTests
, twisted.test.test_amp.ListOfDecimalTests
, twisted.test.test_amp.ListOfIntegersTests
, twisted.test.test_amp.ListOfStringsTests
, twisted.test.test_amp.ListOfUnicodeTests
Subclasses should set this to an Argument
instance. The tests will make a ListOf
using this.
twisted.test.test_amp.ListOfDateTimeTests
, twisted.test.test_amp.ListOfDecimalNanTests
, twisted.test.test_amp.ListOfDecimalTests
, twisted.test.test_amp.ListOfIntegersTests
, twisted.test.test_amp.ListOfStringsTests
, twisted.test.test_amp.ListOfUnicodeTests
Subclasses should set this to a dictionary with the same keys as strings -- as NATIVE strings -- and with values which are the lists which should serialize to the values in the strings dictionary.
twisted.test.test_amp.ListOfDateTimeTests
, twisted.test.test_amp.ListOfDecimalNanTests
, twisted.test.test_amp.ListOfDecimalTests
, twisted.test.test_amp.ListOfIntegersTests
, twisted.test.test_amp.ListOfStringsTests
, twisted.test.test_amp.ListOfUnicodeTests
Subclasses should set this to a dictionary mapping some number of keys -- as BYTE strings -- to the correct serialized form for some example values. These should agree with what elementType
produces/accepts.