The Assimilation Project  based on Assimilation version
cma.tests.store_test Namespace Reference

Data Structures

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


def assert_no_dangling_Cclasses
def CreateIndexes (indexlist)
def initstore ()


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.Graph(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 70 of file

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

cma.tests.store_test.AssertOnDanglingClasses = True

Definition at line 37 of file

cma.tests.store_test.CheckForDanglingClasses = True

Definition at line 36 of file

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

Definition at line 165 of file

tuple cma.tests.store_test.db = neo4j.Graph(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 190 of file

cma.tests.store_test.DEBUG = False

Definition at line 35 of file

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 167 of file

cma.tests.store_test.OurStore = None

Definition at line 194 of file

dictionary cma.tests.store_test.uniqueindexes = {}

Definition at line 173 of file

int cma.tests.store_test.WorstDanglingCount = 0

Definition at line 39 of file