Permalink
Browse files

Add tests to many children achievement

  • Loading branch information...
1 parent de195a3 commit 780eecb5b22c4b490194a9ed6fd18b254d6e005f @tarsisazevedo committed Jul 31, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 manouche_us/project/tests/test_achievements.py
@@ -2,7 +2,7 @@
from django.conf import settings
from project.achievements import PEP8Achievement, FakePythonist, NewbiePythonist, SeniorPythonist, YouArePythonic, HelloGuido
-from project.achievements import CloneDiggerAchivement, YouAreGod
+from project.achievements import CloneDiggerAchivement, YouAreGod, ManyChildren
class TestPEP8Achievement(unittest.TestCase):
@@ -54,3 +54,11 @@ def test_you_are_god(self):
self.assertTrue(isinstance( clone_digger_achievement, YouAreGod ))
self.assertEquals(clone_digger_achievement.name, "You are God")
self.assertEquals(clone_digger_achievement.image, settings.STATIC_ROOT + "/img/you_are_god.png")
+
+ def test_many_chidlren(self):
+ clone_digger_result = 51.0
+ clone_digger_achievement = CloneDiggerAchivement(clone_digger_result).get_achievement()
+
+ self.assertTrue(isinstance( clone_digger_achievement, ManyChildren ))
+ self.assertEquals(clone_digger_achievement.name, "Many children")
+ self.assertEquals(clone_digger_achievement.image, settings.STATIC_ROOT + "/img/many_children.png")

0 comments on commit 780eecb

Please sign in to comment.