From ba59e3b8a56f1a0e780e224ee655fc29123afe88 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 22 May 2014 09:06:13 -0400 Subject: [PATCH] fixup! Serial number commands deserialize course keys --- lms/djangoapps/licenses/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/licenses/tests.py b/lms/djangoapps/licenses/tests.py index a416c59455..d9f190826c 100644 --- a/lms/djangoapps/licenses/tests.py +++ b/lms/djangoapps/licenses/tests.py @@ -156,12 +156,12 @@ class CommandTest(ModuleStoreTestCase): log.debug('Adding one set of serials for {0}'.format(SOFTWARE_1)) with generate_serials_file(size) as temp_file: - args = [self.course_id, SOFTWARE_1, temp_file.name] + args = [self.course_id.to_deprecated_string(), SOFTWARE_1, temp_file.name] call_command('import_serial_numbers', *args) log.debug('Adding one set of serials for {0}'.format(SOFTWARE_2)) with generate_serials_file(size) as temp_file: - args = [self.course_id, SOFTWARE_2, temp_file.name] + args = [self.course_id.to_deprecated_string(), SOFTWARE_2, temp_file.name] call_command('import_serial_numbers', *args) log.debug('There should be only 2 course-software entries') @@ -174,7 +174,7 @@ class CommandTest(ModuleStoreTestCase): log.debug('Adding more serial numbers to {0}'.format(SOFTWARE_1)) with generate_serials_file(size) as temp_file: - args = [self.course_id, SOFTWARE_1, temp_file.name] + args = [self.course_id.to_deprecated_string(), SOFTWARE_1, temp_file.name] call_command('import_serial_numbers', *args) log.debug('There should be still only 2 course-software entries') @@ -197,7 +197,7 @@ class CommandTest(ModuleStoreTestCase): with NamedTemporaryFile() as tmpfile: tmpfile.write('\n'.join(known_serials)) tmpfile.flush() - args = [self.course_id, SOFTWARE_1, tmpfile.name] + args = [self.course_id.to_deprecated_string(), SOFTWARE_1, tmpfile.name] call_command('import_serial_numbers', *args) log.debug('Check if we added only the new ones')