Beispiel #1
0
 def test_get_program(self):
     """test grabbing a program by school/program_code"""
     school = School.objects.get(school_id=408039)
     test1 = get_program(school, '981')
     self.assertTrue('Occupational' in test1.program_name)
     test2 = get_program(school, 'xxx')
     self.assertTrue(test2 == '')
Beispiel #2
0
 def test_get_program(self):
     """test grabbing a program by school/program_code"""
     school = School.objects.get(school_id=408039)
     test1 = get_program(school, '981')
     self.assertTrue('Occupational' in test1.program_name)
     test2 = get_program(school, 'xxx')
     self.assertTrue(test2 == '')
 def test_get_program(self):
     """test grabbing a program by school/program_code"""
     school = School.objects.get(school_id=408039)
     test1 = get_program(school, "981")
     self.assertTrue("Occupational" in test1.program_name)
     test2 = get_program(school, "xxx")
     self.assertIs(test2, None)
     test3 = get_program(school, "<program>")
     self.assertIs(test3, None)