'Verify that course_structure returns info for entire course.'

def test_course_structure_with_no_block_types(self):

    with mock.patch(self.MOCK_CACHE, cache.caches['default']):
        with self.assertNumQueries(3):
            structure = course_structure(self.course.id)
    expected = {u'root': unicode(self.course.location), u'blocks': self._expected_blocks()}
    self.assertDictEqual(structure, expected)
    with mock.patch(self.MOCK_CACHE, cache.caches['default']):
        with self.assertNumQueries(2):
            course_structure(self.course.id)
