'Should set the RLIMIT_CORE resource to zero.'

def test_sets_core_limit_to_zero(self):

    expect_resource = self.RLIMIT_CORE
    expect_limit = (0, 0)
    expect_mock_output = ('                                                Called    resource.getrlimit(\n                                                                %(expect_resource)r)\n                                                Called    resource.setrlimit(\n                                                                %(expect_resource)r,\n                                                                %(expect_limit)r)\n                                                ' % vars())
    daemon.daemon.prevent_core_dump()
    self.failUnlessMockCheckerMatch(expect_mock_output)
