def test_filtered_refs(self):
        """
        Will filter references and not return HEAD and master.
        """
        for i in range(1, 4):
            self.command('git checkout -b branch{0}'.format(i))
            self.command('git checkout master')

        refs = self.inspector._filtered_remotes(
            self.inspector.repo.remotes[0])

        self.assertEqual(['branch1', 'branch2', 'branch3'],
            [i.remote_head for i in refs])

        Will filter references and not return HEAD and master.
        
src/gitsweep/tests/test_inspector.py