def test_exercises_from_topics(self): '''get_exercises_from_topics()''' expected = [u'counting-out-1-20-objects', u'counting-objects', u'one-more--one-less'] actual = get_exercises_from_topics(['cc-early-math-counting']) self.assertEqual(expected, actual)
def test_exercises_from_topics(self): '''get_exercises_from_topics()''' expected = ['converting_fractions_to_decimals', 'converting_decimals_to_fractions_1', 'converting_decimals_to_fractions_2'] actual = get_exercises_from_topics([self.TOPIC_TO_TEST]) self.assertEqual(expected, actual)
def test_exercises_from_topics(self): '''get_exercises_from_topics()''' expected = [ u'counting-out-1-20-objects', u'counting-objects', u'one-more--one-less' ] actual = get_exercises_from_topics(['cc-early-math-counting']) self.assertEqual(expected, actual)
def test_exercises_from_topics(self): '''get_exercises_from_topics()''' expected = [e.id for e in self.content_exercises[0:4]] actual = get_exercises_from_topics([self.content_subsubtopics[0].id]) actual = map(lambda s: str(s), actual) expected = set(expected) actual = set(sorted(actual)) self.assertEqual(expected, actual)
def test_exercises_from_topics(self): '''get_exercises_from_topics()''' expected = [ 'converting_fractions_to_decimals', 'converting_decimals_to_fractions_1', 'converting_decimals_to_fractions_2' ] actual = get_exercises_from_topics([self.TOPIC_TO_TEST]) self.assertEqual(expected, actual)