The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cma.tests.store_test Namespace Reference

Data Structures

class  Person
 
class  TestSystem
 
class  TestDrone
 
class  TestIPaddr
 
class  TestNIC
 
class  TestCreateOps
 
class  TestRelateOps
 
class  TestGeneralQuery
 
class  TestDatabaseWrites
 

Functions

def assert_no_dangling_Cclasses
 
def CreateIndexes
 
def initstore
 

Variables

list _suites = ['all', 'cma']
 
 DEBUG = False
 
 CheckForDanglingClasses = True
 
 AssertOnDanglingClasses = True
 
int WorstDanglingCount = 0
 
list Classes = [Person, TestSystem, TestDrone, TestIPaddr, TestNIC]
 
dictionary keymap
 
dictionary uniqueindexes = {}
 
tuple db = neo4j.GraphDatabaseService(None)
 mys = Store(db, uniqueindexmap=uniqueindexes, classkeymap=keymap) More...
 
 OurStore = None
 

Function Documentation

def cma.tests.store_test.assert_no_dangling_Cclasses (   doassert = None)
def cma.tests.store_test.CreateIndexes (   indexlist)

Definition at line 68 of file store_test.py.

Referenced by cma.tests.store_test.initstore().

Here is the caller graph for this function:

Variable Documentation

list cma.tests.store_test._suites = ['all', 'cma']

Definition at line 22 of file store_test.py.

cma.tests.store_test.AssertOnDanglingClasses = True

Definition at line 36 of file store_test.py.

cma.tests.store_test.CheckForDanglingClasses = True

Definition at line 35 of file store_test.py.

list cma.tests.store_test.Classes = [Person, TestSystem, TestDrone, TestIPaddr, TestNIC]

Definition at line 163 of file store_test.py.

tuple cma.tests.store_test.db = neo4j.GraphDatabaseService(None)

mys = Store(db, uniqueindexmap=uniqueindexes, classkeymap=keymap)

fred = System('Fred') fred.addroles('server') fred.addroles(['server', 'switch']) print fred.designation print fred.roles

Annika = Person('Annika', 'Hansen') print seven.designation print seven.roles print Annika.firstname, Annika.lastname

Definition at line 188 of file store_test.py.

cma.tests.store_test.DEBUG = False

Definition at line 34 of file store_test.py.

dictionary cma.tests.store_test.keymap
Initial value:
1 = {'Person': {'index':'Person','kattr': 'lastname', 'vattr': 'firstname'},
2  'TestSystem': {'index':'TestSystem','kattr': 'designation', 'value': 'global'},
3  'TestDrone': {'index':'TestDrone','kattr': 'designation', 'value': 'global'},
4  'TestIPaddr': {'index':'TestIPaddr','kattr': 'ipaddr', 'value': 'global'},
5  'TestNIC': {'index':'TestNIC','kattr': 'MACaddr', 'value': 'global'}
6  }

Definition at line 165 of file store_test.py.

cma.tests.store_test.OurStore = None

Definition at line 190 of file store_test.py.

dictionary cma.tests.store_test.uniqueindexes = {}

Definition at line 171 of file store_test.py.

int cma.tests.store_test.WorstDanglingCount = 0

Definition at line 38 of file store_test.py.