Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Raise NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore TupleLoad Str Num Num Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str BinOpMod NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str ClassDef bases AttributeLoad NameLoad attr NameLoad body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Str FunctionDef arguments args NameParam NameParam defaults vararg body Expr Str Expr Call Call NameLoad NameLoad BinOpAdd Str NameLoad NameLoad NameLoad decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad BinOpAdd Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore Call NameLoad Index BinOpAdd Str Call AttributeLoad NameLoad attr Call NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr With Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpAdd Num Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str Str decorator_list decorator_list
N/A N/A Tests the utils.printers module of pyexperiment

Written by Peter Duerr

 __future__ print_function __future__ unicode_literals __future__ division __future__ absolute_import N/A unittest N/A io N/A re pyexperiment.utils.stdout_redirector stdout_redirector pyexperiment.utils printers PrinterTest N/A object N/A N/A ABC for the printer tests
     N/A COLOR_SEQ None N/A The color sequence of the tested color, set by the subclass
     printer N/A N/A self messsage N/A args N/A N/A Subclasses should implement this
         N/A NotImplementedError N/A test_reset_seqence_appears N/A N/A self N/A N/A N/A Test printing actually produces the reset sequence
         N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A self printer foo N/A N/A N/A self assertRegexpMatches N/A N/A buf getvalue N/A %s N/A N/A re escape N/A printers RESET_SEQ N/A test_color_sequence_appears N/A N/A self N/A N/A N/A Test printing actually produces the color sequence
         N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A self printer foo N/A N/A N/A self assertIsNotNone N/A self COLOR_SEQ N/A N/A N/A self assertRegexpMatches N/A N/A buf getvalue N/A %s N/A N/A re escape N/A self COLOR_SEQ N/A test_message_sequence_appears N/A N/A self N/A N/A N/A Test printing actually prints the message
         N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A self printer foo N/A N/A N/A self assertRegexpMatches N/A N/A buf getvalue foo N/A test_message_interpolates_args N/A N/A self N/A N/A N/A Test printing actually interpolates the arguments correctly
         N/A message str: %s, int: %d, float %f N/A arguments N/A bla 12 3.14 N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A self printer message arguments N/A N/A N/A self assertRegexpMatches N/A N/A buf getvalue N/A .*%s.* N/A message arguments N/A N/A create_printer_check N/A N/A color_ N/A N/A N/A Factory for printer tests
     TestPrinters N/A N/A unittest TestCase PrinterTest N/A N/A Test the printer for a color
         N/A COLOR_SEQ N/A N/A printers COLORS N/A color_ N/A The color sequence of the tested color
         printer N/A N/A self message N/A args N/A N/A The printer to be tested
             N/A N/A N/A getattr printers N/A print_ color_ message args N/A N/A N/A N/A TestPrinters __name__ N/A str N/A Test N/A N/A color_ title N/A TestPrinters N/A N/A color N/A N/A N/A printers COLORS keys N/A N/A N/A N/A vars N/A N/A Test N/A N/A color title N/A create_printer_check color TestPrinterExamples N/A N/A unittest TestCase N/A N/A Test the print_examples function of pyexperiment.utils.printers
     test_examples_print_something N/A N/A self N/A N/A N/A Make sure calling print_examples prints something
         N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A printers print_examples N/A N/A N/A self assertTrue N/A N/A len N/A N/A buf getvalue 0 N/A test_example_messsage_with_args N/A N/A self N/A N/A N/A Make sure print_examples interpolates message with arguments
         N/A buf N/A N/A io StringIO N/A N/A stdout_redirector buf N/A N/A N/A N/A printers print_examples Foo %d N/A 3 4 N/A N/A N/A self assertRegexpMatches N/A N/A buf getvalue N/A .*%s.* Foo 7 N/A N/A