'Owners always have permission to edit.'

@ddt.data('patch', 'post', 'put')
def test_has_permission_as_owner_with_edit(self, action):

    user = UserFactory()
    data = {'username': user.username}
    request = getattr(RequestFactory(), action)('/', data, format='json')
    request.user = user
    request.data = data
    self.assertTrue(self.permission.has_permission(request, None))
