'Tests `get_module_context` method for the chapters.'

def test_get_module_context_chapter(self):

    self.assertDictEqual({u'display_name': self.chapter.display_name_with_default_escaped, u'index': 0, u'location': unicode(self.chapter.location), u'children': [unicode(self.sequential.location)]}, helpers.get_module_context(self.course, self.chapter))
    self.assertDictEqual({u'display_name': self.chapter_2.display_name_with_default_escaped, u'index': 1, u'location': unicode(self.chapter_2.location), u'children': []}, helpers.get_module_context(self.course, self.chapter_2))
