def test_get_download_with_same_key_and_different_url(self):
        """The get_download() method can find downloads by user, volume,
        path and URL or key.
        """
        user = self.gw.create_or_update_user(
            'username', visible_name='Visible Name', max_storage_bytes=1)
        udf = self.factory.make_user_volume(
            owner=user._user, path='~/path/name')
        key = ['some', 'key']
        download = self.gw.make_download(
            user.id, udf.id, 'path', 'http://download/url/1', key)

        # request with same key and different URL
        other_download = self.gw.get_download(
            user.id, udf.id, 'path', 'http://download/url/2', key)
        self.assertEqual(other_download.id, download.id)