def METHOD_NAME(self):
    content = OrderedDict([
        ("current-context", "context"),
        ("apiVersion", "v1")
    ])
    containing_dir = tempfile.mkdtemp()
    self.addCleanup(shutil.rmtree, containing_dir)
    config = Kubeconfig(containing_dir, content)
    self.assertRaises(KubeconfigInaccessableError,
                      self._writer.write_kubeconfig,
                      config)