'Should register the `close` method for atexit processing.'

def test_registers_close_method_for_atexit(self):

    instance = self.test_instance
    close_method = instance.close
    expect_mock_output = ('                                                ...\n                                                Called    daemon.daemon.register_atexit_function(%(close_method)r)\n                                                ' % vars())
    instance.open()
    self.failUnlessMockCheckerMatch(expect_mock_output)
