toastdriven/django-tastypie — pull request #504 by matthewbelisle-wf (2012-05-23 15:00:27+00:00)
Title: Fix tests.core.tests.authentication.OAuthAuthenticationTestCase

Fixed tests.core.tests.authentication.OAuthAuthenticationTestCase because it was failing with one error.

```
======================================================================
ERROR: test_is_authenticated (core.tests.authentication.OAuthAuthenticationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/mgbelisle/code/django-tastypie/tests/core/tests/authentication.py", line 253, in test_is_authenticated
'user': user,
File "/Users/mgbelisle/.pythonbrew/pythons/Python-2.7/lib/python2.7/site-packages/django/db/models/manager.py", line 134, in get_or_create
return self.get_query_set().get_or_create(**kwargs)
File "/Users/mgbelisle/.pythonbrew/pythons/Python-2.7/lib/python2.7/site-packages/django/db/models/query.py", line 447, in get_or_create
obj = self.model(**params)
File "/Users/mgbelisle/.pythonbrew/pythons/Python-2.7/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0])
TypeError: 'resource' is an invalid keyword argument for this function

----------------------------------------------------------------------
```