UseCases.libs.JSONDataSerializer.export.020_add_new.Case000 package

Submodules

UseCases.libs.JSONDataSerializer.export.020_add_new.Case000.CallCase module

Import of new branches by jsondata.JSONDataSerializer.branch_import().

class UseCases.libs.JSONDataSerializer.export.020_add_new.Case000.CallCase.CallUnits(methodName='runTest')[source]

Bases: unittest.case.TestCase

Base branch import by branch_add.

testCase000()[source]

Load initial main/master data, and validate it with standard draft4.

testCase500()[source]

Import another branch into initial main/master data, and validate it with branch schema.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch1.json’ #—

{
“type”:”home2”, “number”:”222 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

testCase502()[source]

Import a branch into initial main/master data, and validate it with branch schema.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

testCase510()[source]

Import a branch with erroneous key.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

with key:
‘phoneNumber’
testCase511()[source]

Import a branch with no key and mismatch of types for ‘targetnode’ and ‘branch’.

Use insertion point:
target = configdata.data[‘phoneNumber’]
for file:

‘branch2.json’ #—

{
“type”:”home2”, “number”:”333 222-333”

}

#—

Apply ‘$schema’ key for branch/subtree of master schema.

Module contents

Add a branch.