Commit e26a0c43 by Jesse Zoldak

Fix pep8 violations in some tests

parent 17379f40
...@@ -35,6 +35,7 @@ TEST_DATA_MIXED_XML_MODULESTORE = mixed_store_config( ...@@ -35,6 +35,7 @@ TEST_DATA_MIXED_XML_MODULESTORE = mixed_store_config(
DATA_DIR, MAPPINGS, include_xml=True, xml_course_dirs=XML_COURSE_DIRS DATA_DIR, MAPPINGS, include_xml=True, xml_course_dirs=XML_COURSE_DIRS
) )
class CommandsTestBase(TestCase): class CommandsTestBase(TestCase):
""" """
Base class for testing different django commands. Base class for testing different django commands.
......
...@@ -156,7 +156,6 @@ class TestVideo(BaseTestXmodule): ...@@ -156,7 +156,6 @@ class TestVideo(BaseTestXmodule):
response = self.item_descriptor.handle_ajax('save_user_state', {u'demoo�': "sample"}) response = self.item_descriptor.handle_ajax('save_user_state', {u'demoo�': "sample"})
self.assertEqual(json.loads(response)['success'], True) self.assertEqual(json.loads(response)['success'], True)
def tearDown(self): def tearDown(self):
_clear_assets(self.item_descriptor.location) _clear_assets(self.item_descriptor.location)
......
...@@ -29,6 +29,7 @@ log = logging.getLogger(__name__) ...@@ -29,6 +29,7 @@ log = logging.getLogger(__name__)
# pylint: disable=missing-docstring # pylint: disable=missing-docstring
@override_settings(MODULESTORE=TEST_DATA_MOCK_MODULESTORE) @override_settings(MODULESTORE=TEST_DATA_MOCK_MODULESTORE)
class ViewsExceptionTestCase(UrlResetMixin, ModuleStoreTestCase): class ViewsExceptionTestCase(UrlResetMixin, ModuleStoreTestCase):
......
...@@ -6,6 +6,7 @@ from verify_student.ssencrypt import ( ...@@ -6,6 +6,7 @@ from verify_student.ssencrypt import (
rsa_decrypt, rsa_encrypt, random_aes_key rsa_decrypt, rsa_encrypt, random_aes_key
) )
def test_aes(): def test_aes():
key_str = "32fe72aaf2abb44de9e161131b5435c8d37cbdb6f5df242ae860b283115f2dae" key_str = "32fe72aaf2abb44de9e161131b5435c8d37cbdb6f5df242ae860b283115f2dae"
key = key_str.decode("hex") key = key_str.decode("hex")
...@@ -27,6 +28,7 @@ def test_aes(): ...@@ -27,6 +28,7 @@ def test_aes():
assert_roundtrip("") assert_roundtrip("")
assert_roundtrip("\xe9\xe1a\x13\x1bT5\xc8") # Random, non-ASCII text assert_roundtrip("\xe9\xe1a\x13\x1bT5\xc8") # Random, non-ASCII text
def test_rsa(): def test_rsa():
# Make up some garbage keys for testing purposes. # Make up some garbage keys for testing purposes.
pub_key_str = """-----BEGIN PUBLIC KEY----- pub_key_str = """-----BEGIN PUBLIC KEY-----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment