<commit_before>// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package backups_test

import (
	gc "gopkg.in/check.v1"

	"github.com/juju/juju/api/backups"
	"github.com/juju/juju/apiserver/params"
)

type removeSuite struct {
	backupsSuite
}

var _ = gc.Suite(&removeSuite{})

func (s *removeSuite) TestRemove(c *gc.C) {
	cleanup := backups.PatchClientFacadeCall(s.client,
		func(req string, paramsIn interface{}, resp interface{}) error {
			c.Check(req, gc.Equals, "Remove")

			c.Assert(paramsIn, gc.FitsTypeOf, params.BackupsRemoveArgs{})

			c.Check(resp, gc.IsNil)
			return nil
		},
	)
	defer cleanup()

	err := s.client.Remove(s.meta.ID())
	c.Assert(err, gc.IsNil)
}<commit_msg>Adjust to baseSuite.<commit_after>// Copyright 2014 Canonical Ltd.
// Licensed under the AGPLv3, see LICENCE file for details.

package backups_test

import (
	gc "gopkg.in/check.v1"

	"github.com/juju/juju/api/backups"
	"github.com/juju/juju/apiserver/params"
)

type removeSuite struct {
	backupsSuite
}

var _ = gc.Suite(&removeSuite{})

func (s *removeSuite) TestRemove(c *gc.C) {
	cleanup := backups.PatchClientFacadeCall(s.client,
		func(req string, paramsIn interface{}, resp interface{}) error {
			c.Check(req, gc.Equals, "Remove")

			c.Assert(paramsIn, gc.FitsTypeOf, params.BackupsRemoveArgs{})

			c.Check(resp, gc.IsNil)
			return nil
		},
	)
	defer cleanup()

	err := s.client.Remove(s.Meta.ID())
	c.Assert(err, gc.IsNil)
}
{'fraction_non_alphanumeric': 0.14499659632402995, 'fraction_numerical': 0.008168822328114363, 'mean_word_length': 4.176056338028169, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5869371', 'n_tokens_mistral': 604, 'n_tokens_neox': 558, 'n_words': 116}