def create_dependencies(self, pano, state): state.profiles = [] for x in range(2): state.profiles.append(device.PasswordProfile( testlib.random_name(), x, x, x, x)) pano.add(state.profiles[x]) state.profiles[0].create_similar()
def create_dependencies(self, fw, state): state.profiles = [] for x in range(2): state.profiles.append(device.PasswordProfile( testlib.random_name(), x, x, x, x)) fw.add(state.profiles[x]) fw.create_type(device.PasswordProfile)
def setup_state_obj(self, dev, state): state.obj = device.PasswordProfile( testlib.random_name(), 0, 0, 0, 0) dev.add(state.obj)