def METHOD_NAME(self):
    path = get_swcli_config_path()
    self.fs.create_file(path, contents=_existed_config_contents)
    sw = SWCliConfigMixed()
    assert sw.current_instance == "pre-bare"
    assert sw.current_project == "self"
    sw.select_current_default(instance="pre-bare", project="first")
    assert sw.current_project == "first"
    sw.select_current_default(instance="local", project="self")
    assert sw.current_instance == "local"
    assert sw.current_project == "self"
    sw.select_current_default(instance="pre-bare2")
    assert sw.current_instance == "pre-bare2"
    sw.select_current_default(instance="pre-bare2", project="new")
    assert sw.current_instance == "pre-bare2"
    assert sw.current_project == "new"
    self.assertRaises(NotFoundError, sw.select_current_default, instance="notfound")
    self.assertRaises(
        NotFoundError,
        sw.select_current_default,
        instance="local",
        project="notfound",
    )