Module Expr Str ImportFrom alias Expr Call AttributeLoad NameLoad attr Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Num Expr Call AttributeLoad NameLoad attr Num Assert CompareLtELtE Num AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Tests for flushing with greenlets. Can't be run in the same process
as other tests because of the gevent monkey patch.
 gevent monkey N/A N/A N/A monkey patch_all N/A os N/A time N/A unittest dogapi DogStatsApi N/A API_KEY N/A N/A N/A os environ get DATADOG_API_KEY TestGreenletIntegrationDogStatsApi N/A N/A unittest TestCase N/A test_flushing_in_thread N/A N/A self N/A N/A N/A dog N/A DogStatsApi N/A N/A N/A dog start roll_up_interval 1 flush_interval 1 flush_in_greenlet True api_key API_KEY N/A now N/A N/A time time N/A N/A N/A dog gauge N/A test.dogapi.greenlet.gauge.%s now 3 N/A N/A N/A dog increment N/A test.dogapi.greenlet.counter.%s now N/A N/A N/A dog increment N/A test.dogapi.greenlet.counter.%s now N/A N/A N/A dog histogram N/A test.dogapi.greenlet.histogram.%s now 20 N/A N/A N/A dog histogram N/A test.dogapi.greenlet.histogram.%s now 30 N/A N/A N/A time sleep 3 N/A N/A 1 N/A dog flush_count 5 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main