PEP8 cleanups
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -83,7 +83,7 @@ class Archive(object):
|
||||
"""
|
||||
Return a file-like object to a member of the archive
|
||||
"""
|
||||
raise NotImplemented
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
class TarArchive(Archive):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
@@ -43,25 +43,25 @@ class CommonViewTestCase(GenericViewTestCase):
|
||||
)
|
||||
|
||||
def test_object_error_list_view_with_permissions(self):
|
||||
self._create_error_log_entry()
|
||||
self._create_error_log_entry()
|
||||
|
||||
self.grant_access(
|
||||
obj=self.user, permission=permission_error_log_view
|
||||
)
|
||||
self.grant_access(
|
||||
obj=self.user, permission=permission_error_log_view
|
||||
)
|
||||
|
||||
response = self._request_object_error_log_list()
|
||||
response = self._request_object_error_log_list()
|
||||
|
||||
self.assertContains(
|
||||
response=response, text=TEST_ERROR_LOG_ENTRY_RESULT,
|
||||
status_code=200
|
||||
)
|
||||
self.assertContains(
|
||||
response=response, text=TEST_ERROR_LOG_ENTRY_RESULT,
|
||||
status_code=200
|
||||
)
|
||||
|
||||
def test_object_error_list_view_no_permissions(self):
|
||||
self._create_error_log_entry()
|
||||
self._create_error_log_entry()
|
||||
|
||||
response = self._request_object_error_log_list()
|
||||
response = self._request_object_error_log_list()
|
||||
|
||||
self.assertNotContains(
|
||||
response=response, text=TEST_ERROR_LOG_ENTRY_RESULT,
|
||||
status_code=403
|
||||
)
|
||||
self.assertNotContains(
|
||||
response=response, text=TEST_ERROR_LOG_ENTRY_RESULT,
|
||||
status_code=403
|
||||
)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
import types
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
Reference in New Issue
Block a user