'Assert that the enabled block types for this course are as expected.'

def assert_block_types(self, course, user, expected_blocks):

    blocks = get_course_date_blocks(course, user)
    self.assertEqual(len(blocks), len(expected_blocks))
    self.assertEqual(set((type(b) for b in blocks)), set(expected_blocks))
