Ejemplo n.º 1
0
  def testValidSpec(self):
    try:
      x = Spec(description="123", singleNodeOnly=True)
      x.invariant()

      x = Spec(description="123", singleNodeOnly=True)
      x.commands = dict(command1=CommandSpec("A command"),
                        command2=CommandSpec("Another command"))
      x.invariant()
    except:
      self.fail("Got unexpected exception")
Ejemplo n.º 2
0
    def testValidSpec(self):
        try:
            x = Spec(description="123", singleNodeOnly=True)
            x.invariant()

            x = Spec(description="123", singleNodeOnly=True)
            x.commands = dict(command1=CommandSpec("A command"),
                              command2=CommandSpec("Another command"))
            x.invariant()
        except:
            self.fail("Got unexpected exception")