Don't require authentication when getting a public collection

Fixes #87
Whoops, thanks for catching that. I didn't see this in tox/3.4. What kind
of message did you see?


On Tue, Jul 29, 2014 at 8:31 PM, Wieland Hoffmann <notifications@github.com>
wrote:

> In test/test_collection.py:
>
> > +from test import _common
> > +
> > +class CollectionTest(unittest.TestCase):
> > +    """ Test that requesting collections works properly """
> > +
> > +    def setUp(self):
> > +        musicbrainzngs.set_useragent("a", "1")
> > +        musicbrainzngs.set_rate_limit(False)
> > +
> > +    def test_auth_required(self):
> > +        """ Check the auth_required method in isolation """
> > +        ar = musicbrainzngs.musicbrainz._is_auth_required("collection", "", [])
> > +        self.assertEquals(True, ar)
> > +
> > +        ar = musicbrainzngs.musicbrainz._is_auth_required("collection", "foo/releases", [])
> > +        self.assertEquals(False, ar)
>
> assertEquals is deprecated in Python 3 and is clobbering the test output
> with a warning about that - just changing to assertEqual should be enough
> to fix that.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/alastair/python-musicbrainzngs/pull/146/files#r15542697>
> .
>