'Test L{util.FilePager}, sending an empty file.'

def test_emptyFilePaging(self):

    filenameEmpty = self.mktemp()
    open(filenameEmpty, 'w').close()
    (c, s, pump) = connectedServerAndClient(test=self)
    pagerizer = FilePagerizer(filenameEmpty, None)
    s.setNameForLocal('bar', pagerizer)
    x = c.remoteForName('bar')
    l = []
    util.getAllPages(x, 'getPages').addCallback(l.append)
    ttl = 10
    while ((not l) and (ttl > 0)):
        pump.pump()
        ttl -= 1
    if (not ttl):
        self.fail('getAllPages    timed    out')
    self.assertEqual(''.join(l[0]), '', 'Pages    received    not    equal    to    pages    sent!')
