var flickr = require('..')(function auth() { /* noop */ });
var assert = require('assert');

describe('flickr.test.login', function () {

	it('returns a Request instance', function () {
		var req = flickr.test.login({});

		assert.equal(req.method, 'GET');
		assert.equal(req.url, 'https://api.flickr.com/services/rest');
		assert.equal(req.params.format, 'json');
		assert.equal(req.params.nojsoncallback, '1');
		assert.equal(req.params.method, 'flickr.test.login');
		assert.equal(req.header['Content-Type'], 'text/plain');
	});

});
