Commit 1cf9a3a0 by Jesse Zoldak

Merge pull request #6112 from edx/zoldak/fix-pep8

Fix pep8 violations in some tests
parents 94d3d236 e26a0c43
...@@ -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.
......
...@@ -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