def test_will_delete_merged_from_clone(self):
        """
        Given a list of refs, will delete them from cloned repo.

        This test looks at our cloned repository, the one which is setup to
        track the remote and makes sure that the changes occur on it as
        expected.
        """
        clone = self.remote.remotes[0]

        # Grab all the remote branches
        before = [i.remote_head for i in clone.refs]
        # We should have 5 branches plus HEAD and master
        self.assertEqual(7, len(before))

        # Delete from the remote through the clone
        pushes = self.deleter.remove_remote_refs(
            self.merged_refs(refobjs=True))

        # Make sure it removed the expected number
        self.assertEqual(5, len(pushes))

        # Grab all the remote branches again
        after = [i.remote_head for i in clone.refs]
        after.sort()

        # We should be down to 2, HEAD and master
        self.assertEqual(['HEAD', 'master'], after)

        Given a list of refs, will delete them from cloned repo.

        This test looks at our cloned repository, the one which is setup to
        track the remote and makes sure that the changes occur on it as
        expected.
        
src/gitsweep/tests/test_deleter.py