コード例 #1
0
 def test_no_bulk_read_index(self, ignore_case):
     # Reading a course index when no bulk operation is active should just call
     # through to the db_connection
     result = self.bulk.get_course_index(self.course_key, ignore_case=ignore_case)
     self.assertConnCalls(call.get_course_index(self.course_key, ignore_case))
     self.assertEqual(result, self.conn.get_course_index.return_value)
     self.assertCacheNotCleared()
コード例 #2
0
 def test_no_bulk_read_index(self, ignore_case):
     # Reading a course index when no bulk operation is active should just call
     # through to the db_connection
     result = self.bulk.get_course_index(self.course_key, ignore_case=ignore_case)
     self.assertConnCalls(call.get_course_index(self.course_key, ignore_case))
     self.assertEqual(result, self.conn.get_course_index.return_value)
     self.assertCacheNotCleared()