Exemplo n.º 1
0
    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()
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def setup_state_obj(self, dev, state):
     state.obj = device.PasswordProfile(
         testlib.random_name(), 0, 0, 0, 0)
     dev.add(state.obj)