'Should return module MAXFD if hard limit is infinity.'

def test_returns_module_default_if_hard_limit_infinity(self):

    self.test_rlimit_nofile = self.RLIM_INFINITY
    expect_result = self.test_maxfd
    result = daemon.daemon.get_maximum_file_descriptors()
    self.failUnlessEqual(expect_result, result)
