Commit 7e4f3fd0 by lenacom

fixed comment

parent 2f2c6fc5
...@@ -85,8 +85,8 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase): ...@@ -85,8 +85,8 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
blocks = get_blocks(self.request, sequential_block.location, self.user, requested_fields=['type']) blocks = get_blocks(self.request, sequential_block.location, self.user, requested_fields=['type'])
self.assertEquals(len(blocks['blocks']), 5) self.assertEquals(len(blocks['blocks']), 5)
found_not_problem = False found_not_problem = False
for key in blocks['blocks']: for block in blocks['blocks'].itervalues():
if blocks['blocks'][key]['type'] != 'problem': if block['type'] != 'problem':
found_not_problem = True found_not_problem = True
self.assertTrue(found_not_problem) self.assertTrue(found_not_problem)
...@@ -94,5 +94,5 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase): ...@@ -94,5 +94,5 @@ class TestGetBlocks(EnableTransformerRegistryMixin, SharedModuleStoreTestCase):
blocks = get_blocks(self.request, sequential_block.location, self.user, blocks = get_blocks(self.request, sequential_block.location, self.user,
block_types_filter=['problem'], requested_fields=['type']) block_types_filter=['problem'], requested_fields=['type'])
self.assertEquals(len(blocks['blocks']), 3) self.assertEquals(len(blocks['blocks']), 3)
for key in blocks['blocks']: for block in blocks['blocks'].itervalues():
self.assertEqual(blocks['blocks'][key]['type'], 'problem') self.assertEqual(block['type'], 'problem')
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