def METHOD_NAME(self):
    cache = WebDriverCache()
    driver = mock()
    when(driver).quit().thenReturn(None)
    cache.register(driver, "bar")
    cache.close()
    self.assertTrue(isinstance(cache.current, NoConnection))
    self.assertTrue(driver in cache._closed)