def testCompile1(self):
        d = FirewallStatement(label=101).compile(defer.fail(SkipToProcess(101, self.pack)))

        def checkPack(pack):
            self.assert_(pack is self.pack)

        d.addCallback(checkPack)
        return d
 def testCompile3(self):
     d = FirewallStatement(label=101).compile(defer.fail(SkipToProcess(101, self.pack)))
     d.addCallback(lambda pack: self.assert_(pack is self.pack))
     return d
 def testCompile2(self):
     d = FirewallStatement(label=131).compile(defer.fail(SkipToProcess(101, self.pack)))
     d.addCallback(lambda _: self.assert_(False)).addErrback(lambda failure: failure.trap(SkipToProcess))
     return d