@@ -0,0 +1,923 @@
+from django.test import TestCase%0Afrom course_grader.dao.catalyst import grades_for_section%0Afrom course_grader.dao.person import PWS%0Afrom course_grader.dao.section import get_section_by_label%0Afrom uw_pws.util import fdao_pws_override%0Afrom uw_sws.util import fdao_sws_override%0A%0A%0A@fdao_sws_override%0A@fdao_pws_override%0Aclass CatalystDAOFunctionsTest(TestCase):%0A    def test_grades_for_section(self):%0A        section = get_section_by_label('2013,summer,CSS,161/A')%0A        user = PWS().get_person_by_regid('FBB38FE46A7C11D5A4AE0004AC494FFE')%0A%0A        r = grades_for_section(section, user)%0A        self.assertEquals(len(r%5B'grades'%5D), 3)%0A%0A    def test_grades_for_book(self):%0A        section = get_section_by_label('2013,summer,CSS,161/A')%0A        user = PWS().get_person_by_regid('FBB38FE46A7C11D5A4AE0004AC494FFE')%0A%0A        r = grades_for_section(section, user, gradebook_id=12345)%0A        self.assertEquals(len(r%5B'grades'%5D), 3)%0A

add tests for catalyst dao