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 (db, indexlist)
def initstore ()
 mys = Store(db, uniqueindexmap=uniqueindexes, classkeymap=keymap) More...


list _suites = ['all', 'cma']
 DEBUG = False
 CheckForDanglingClasses = True
 AssertOnDanglingClasses = True
int WorstDanglingCount = 0
 version_printed = False
list Classes = [Person, TestSystem, TestDrone, TestIPaddr, TestNIC]
dictionary keymap
dictionary uniqueindexes = {}

Function Documentation

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

Definition at line 74 of file

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

Here is the caller graph for this function:

def cma.tests.store_test.initstore ( )

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

References cma.tests.store_test.CreateIndexes().

Referenced by cma.tests.store_test.TestDatabaseWrites.test_create_and_query(), cma.tests.store_test.TestCreateOps.test_drone(), cma.tests.store_test.TestGeneralQuery.test_multicolumn_query(), cma.tests.store_test.TestCreateOps.test_nic(), cma.tests.store_test.TestCreateOps.test_person(), cma.tests.store_test.TestRelateOps.test_relate1(), cma.tests.store_test.TestRelateOps.test_relate2(), cma.tests.store_test.TestRelateOps.test_separate1(), and cma.tests.store_test.TestCreateOps.test_system().

Here is the call graph for this function:

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

cma.tests.store_test.CheckForDanglingClasses = True

Definition at line 37 of file

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

Definition at line 174 of file

cma.tests.store_test.DEBUG = False

Definition at line 36 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 176 of file

dictionary cma.tests.store_test.uniqueindexes = {}

Definition at line 182 of file

cma.tests.store_test.version_printed = False

Definition at line 49 of file

int cma.tests.store_test.WorstDanglingCount = 0

Definition at line 40 of file