s/pylint: disable=E1103/pylint: disable=maybe-no-member/

This commit is contained in:
Sarina Canelake
2014-11-30 00:24:43 -05:00
parent b8c16d5ed7
commit b4d24f36c8
8 changed files with 14 additions and 14 deletions

View File

@@ -69,7 +69,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
self.client.logout()
resp = self.client.get(self.url_unlocked)
self.assertEqual(resp.status_code, 200) # pylint: disable=E1103
self.assertEqual(resp.status_code, 200)
def test_locked_asset_not_logged_in(self):
"""
@@ -78,7 +78,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
self.client.logout()
resp = self.client.get(self.url_locked)
self.assertEqual(resp.status_code, 403) # pylint: disable=E1103
self.assertEqual(resp.status_code, 403)
def test_locked_asset_not_registered(self):
"""
@@ -87,7 +87,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
self.client.login(username=self.non_staff_usr, password=self.non_staff_pwd)
resp = self.client.get(self.url_locked)
self.assertEqual(resp.status_code, 403) # pylint: disable=E1103
self.assertEqual(resp.status_code, 403)
def test_locked_asset_registered(self):
"""
@@ -99,7 +99,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
self.client.login(username=self.non_staff_usr, password=self.non_staff_pwd)
resp = self.client.get(self.url_locked)
self.assertEqual(resp.status_code, 200) # pylint: disable=E1103
self.assertEqual(resp.status_code, 200)
def test_locked_asset_staff(self):
"""
@@ -107,7 +107,7 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
"""
self.client.login(username=self.staff_usr, password=self.staff_pwd)
resp = self.client.get(self.url_locked)
self.assertEqual(resp.status_code, 200) # pylint: disable=E1103
self.assertEqual(resp.status_code, 200)
def test_range_request_full_file(self):
"""

View File

@@ -75,7 +75,7 @@ class TestTransferStudents(ModuleStoreTestCase):
self.assertTrue(self.signal_fired)
# Confirm the analytics event was emitted.
self.mock_tracker.emit.assert_has_calls( # pylint: disable=E1103
self.mock_tracker.emit.assert_has_calls( # pylint: disable=maybe-no-member
[
call(
EVENT_NAME_ENROLLMENT_ACTIVATED,

View File

@@ -163,8 +163,8 @@ class AutoAuthEnabledTestCase(UrlResetMixin, TestCase):
# Check that session and CSRF are set in the response
for cookie in ['csrftoken', 'sessionid']:
self.assertIn(cookie, response.cookies) # pylint: disable=E1103
self.assertTrue(response.cookies[cookie].value) # pylint: disable=E1103
self.assertIn(cookie, response.cookies) # pylint: disable=maybe-no-member
self.assertTrue(response.cookies[cookie].value) # pylint: disable=maybe-no-member
class AutoAuthDisabledTestCase(UrlResetMixin, TestCase):