Module ImportFrom alias ImportFrom alias alias Assign NameStore AttributeLoad NameLoad attr ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str UnaryOpUSub SubscriptLoad AttributeLoad NameLoad attr Index Str Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Str AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A twisted.trial unittest twisted.conch.insults helper text N/A A N/A text attributes Serialization N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self attrs N/A N/A helper CharacterAttribute N/A testTrivial N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A normal N/A Hello, world. N/A self attrs Hello, world. N/A testBold N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A bold N/A Hello, world. N/A self attrs [1mHello, world. N/A testUnderline N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A underline N/A Hello, world. N/A self attrs [4mHello, world. N/A testBlink N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A blink N/A Hello, world. N/A self attrs [5mHello, world. N/A testReverseVideo N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A reverseVideo N/A Hello, world. N/A self attrs [7mHello, world. N/A testMinus N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A bold N/A N/A N/A A blink N/A N/A Hello N/A N/A N/A A bold N/A  world . N/A self attrs [1;5mHello[0;5m world[1;5m. N/A testForeground N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A normal N/A N/A N/A N/A N/A A fg red N/A Hello,  N/A N/A N/A A fg green N/A world! N/A self attrs [31mHello, [32mworld! N/A testBackground N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A normal N/A N/A N/A N/A N/A A bg red N/A Hello,  N/A N/A N/A A bg green N/A world! N/A self attrs [41mHello, [42mworld! N/A N/A EfficiencyTestCase N/A N/A unittest TestCase N/A N/A todo flatten() isn't quite stateful enough to avoid emitting a few extra bytes in certain circumstances, so these tests fail.  The failures take the form of additional elements in the ;-delimited character attribute lists.  For example, \x1b[0;31;46m might be emitted instead of \x[46m, even if 31 has already been activated and no conflicting attributes are set which need to be cleared. setUp N/A N/A self N/A N/A N/A N/A self attrs N/A N/A helper CharacterAttribute N/A testComplexStructure N/A N/A self N/A N/A N/A output N/A N/A A normal N/A N/A N/A A bold N/A N/A N/A N/A A bg cyan N/A N/A N/A N/A N/A A fg red N/A N/A Foreground Red, Background Cyan, Bold N/A N/A A blink N/A Blinking N/A N/A N/A A bold N/A Foreground Red, Background Cyan, normal N/A N/A N/A A fg green N/A Foreground Green, Background Cyan, Bold N/A N/A N/A self assertEqual N/A N/A text flatten output N/A self attrs [1;31;46mForeground Red, Background Cyan, Bold[5mBlinking[0;31;46mForeground Red, Background Cyan, normal[1;32;46mForeground Green, Background Cyan, Bold N/A testNesting N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A bold N/A N/A Hello,  N/A N/A A underline N/A world. N/A self attrs [1mHello, [4mworld. N/A N/A N/A self assertEqual N/A N/A text flatten N/A N/A A bold N/A N/A N/A A reverseVideo N/A N/A Hello,  N/A N/A A normal N/A world . N/A self attrs [1;7mHello, [0mworld[1;7m. N/A N/A