def __init__(self): # again, yamlize does not call __init__, instead we use Blueprints.load which # creates and instance of a Blueprints object and initializes it with values # using setattr. Since the method is never called, it serves the purpose of # preventing pylint from issuing warnings about attributes not existing. self._assembliesBySpecifier = {} self._prepped = False self.systemDesigns = Systems() self.assemDesigns = AssemblyKeyedList() self.blockDesigns = BlockKeyedList() self.assemblies = {} self.grids = Grids() self.elementsToExpand = []
def setUp(self): self.grids = Grids.load(RZT_BLUEPRINT)
def test_roundTrip(self): stream = io.StringIO() saveToStream(stream, self.grids, False, True) stream.seek(0) gridBp = Grids.load(stream) self.assertIn("third", gridBp["core"].symmetry)
def setUp(self): self.grids = Grids.load(LATTICE_BLUEPRINT.format(self._testMethodName))
def setUp(self): self.grids = Grids.load(SMALL_HEX)