Module Expr Str Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr ListLoad Str Str Str Str Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body AugAssignAdd AttributeStore NameLoad attr Num Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Return NameLoad decorator_list Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Test cases for storage API.
 N/A os datetime datetime twisted.trial.unittest TestCase twisted.internet.defer DeferredList pymon.storage api DatabaseSetupTestCase N/A TestCase N/A N/A 
    Tests for the part of L{pymon.storage.api} that deals with getting a
    database from a connection string, creating tables, and getting a store.
     setUp N/A N/A self N/A N/A N/A 
        Create a test database, and insert some data.
         N/A N/A self filename N/A N/A self mktemp N/A test_connectionSchema N/A N/A self N/A N/A N/A db N/A N/A api getDatabase mongo: N/A N/A DatabaseAPITestCase N/A TestCase N/A N/A setUp N/A N/A self N/A N/A N/A 
        Create a test "database", and insert some data.
         N/A N/A self filename N/A N/A self mktemp N/A N/A self database N/A N/A api getDatabase N/A mongo: N/A self filename N/A N/A self host www.adytum.us N/A N/A self service ping N/A N/A self events N/A warning recovering ok error N/A N/A self conn N/A N/A N/A self database connect N/A createHostStatus N/A N/A self N/A N/A N/A stat N/A Status N/A N/A stat host N/A self host N/A N/A stat service N/A self service N/A N/A stat ok_count 0 N/A N/A N/A N/A self store add stat N/A createHostEvent N/A N/A self transition datetime N/A N/A N/A event N/A Event N/A N/A event host N/A self host N/A N/A event service N/A self service N/A N/A event transition transition N/A N/A event datetime datetime N/A N/A N/A N/A self store add event N/A queryHostStatus N/A N/A self result host N/A None N/A N/A N/A host N/A N/A host N/A self host N/A N/A N/A N/A self store find Status N/A N/A Status host host N/A cbGetOneResult N/A N/A self results N/A N/A N/A N/A N/A results one N/A cbGetAllResults N/A N/A self results N/A N/A N/A N/A N/A results order_by N/A Event datetime N/A N/A N/A results get_all N/A tearDown N/A N/A self N/A N/A N/A 
        Kill the store (and its underlying thread).
         N/A N/A N/A os remove N/A self filename N/A N/A N/A N/A self store stop N/A test_addStatus N/A N/A self N/A N/A N/A 
        Add an object to the store.
         cbCheck N/A N/A result N/A N/A N/A N/A N/A self assertEquals N/A result host N/A self host N/A N/A N/A self assertEquals N/A result service N/A self service N/A result N/A N/A d N/A N/A self createHostStatus N/A N/A N/A d addCallback N/A self queryHostStatus N/A N/A N/A d addCallback N/A self cbGetOneResult N/A N/A N/A d addCallback cbCheck N/A d N/A test_incrementCount N/A N/A self N/A N/A N/A 
        Let's update the count attribute and then check to see that this has
        persisted.
         cbSetCount N/A N/A stat N/A N/A N/A N/A stat ok_count 1 N/A N/A N/A N/A self store commit N/A cbCheckIncrement N/A N/A stat N/A N/A N/A N/A N/A self assertEquals N/A stat ok_count 1 N/A stat N/A N/A d N/A N/A self createHostStatus N/A N/A N/A d addCallback N/A self queryHostStatus N/A N/A N/A d addCallback N/A self cbGetOneResult N/A N/A N/A d addCallback cbSetCount N/A N/A N/A d addCallback N/A self queryHostStatus N/A N/A N/A d addCallback N/A self cbGetOneResult N/A N/A N/A d addCallback cbCheckIncrement N/A d N/A test_addEvent N/A N/A self N/A N/A N/A 
        Let's put stuff in the history table and see that the data persisted.
         cbQueryEvent N/A N/A ign N/A N/A N/A d N/A N/A N/A self store find Event N/A N/A N/A d addCallback N/A self cbGetAllResults N/A d N/A cbCheckEvent N/A N/A events N/A N/A N/A expected N/A self events N/A received N/A N/A x transition N/A x events N/A N/A N/A self assertEqual expected received N/A createEvents N/A N/A N/A N/A N/A dl N/A N/A event N/A self events N/A N/A N/A N/A dl append N/A N/A self createHostEvent event N/A N/A datetime now N/A N/A DeferredList dl N/A N/A d N/A createEvents N/A N/A N/A d addCallback cbQueryEvent N/A N/A N/A d addCallback cbCheckEvent N/A d N/A N/A