Exemplo n.º 1
0
def test_create_master_cell(manager):
    master_cell = archetypes.create_master_cell(manager)

    assert master_cell.get_component(Clonable) is not None
    assert master_cell.get_component(Age) is not None
    assert master_cell.get_component(Mood) is not None
    assert master_cell.get_component(Mortality) is None
Exemplo n.º 2
0
def manager_with_master_cell():
    manager = default_manager()
    archetypes.create_master_cell(manager)
    return manager
Exemplo n.º 3
0
 def create_master_cell(self):
     archetypes.create_master_cell(self.manager)
     return answer_creators.new_master_cell()