예제 #1
0
    def test_creation_destruction(self):
        def cb(bs, _):
            print_d(bs)

        with temp_filename() as fn:
            fifo = FIFO(fn, cb)
            self.failIf(fifo_exists(fifo._path))
            fifo.open()
            self.failUnless(fifo_exists(fifo._path))
        # Should *not* error if file is gone
        fifo.destroy()
예제 #2
0
    def test_creation_destruction(self):

        def cb(bs, _):
            print_d(bs)

        with temp_filename() as fn:
            fifo = FIFO(fn, cb)
            self.failIf(fifo_exists(fifo._path))
            fifo.open()
            self.failUnless(fifo_exists(fifo._path))
        # Should *not* error if file is gone
        fifo.destroy()
예제 #3
0
 def remote_exists(cls):
     return fifo.fifo_exists(cls._PATH)
예제 #4
0
 def remote_exists(cls):
     return fifo.fifo_exists(cls._PATH)