Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py	(revision 9902)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/interswitch/tests.py	(revision 9903)
@@ -28,5 +28,5 @@
 #   If you enable this, please make sure the external services
 #   do exist really and are not bothered by being spammed by a test programme.
-EXTERNAL_TESTS = True
+EXTERNAL_TESTS = False
 
 def external_test(func):
Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py	(revision 9902)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py	(revision 9903)
@@ -1,3 +1,4 @@
 # -*- coding: utf-8 -*-
+import grok
 from waeup.kofa.testing import FunctionalTestCase
 from zope.component import getUtility
@@ -27,2 +28,14 @@
         self.assertEqual(acc_details['bt'], 'regular_male_fi')
         return
+
+    def test_maxCreditsExceeded(self):
+        students_utils = getUtility(IStudentsUtils)
+        studylevel = grok.Container()
+        studylevel.total_credits = 40
+        course = grok.Model()
+        course.credits = 18
+        max_credits = students_utils.maxCreditsExceeded(studylevel, course)
+        self.assertEqual(max_credits, 0)
+        course.credits = 19
+        max_credits = students_utils.maxCreditsExceeded(studylevel, course)
+        self.assertEqual(max_credits, 58)
Index: /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
===================================================================
--- /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py	(revision 9902)
+++ /main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py	(revision 9903)
@@ -273,4 +273,10 @@
         return d
 
+    def maxCredits(self, studylevel):
+        """Return maximum credits.
+
+        """
+        return 58
+
     # FCEOkene prefix
     STUDENT_ID_PREFIX = u'K'
