summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_enemies.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_enemies.py b/tests/test_enemies.py
index ed114ae..5182ea2 100644
--- a/tests/test_enemies.py
+++ b/tests/test_enemies.py
@@ -31,10 +31,12 @@ class TestEnemies(unittest.TestCase):
def test_can_create(self):
enemies = Enemies()
self.assertNotEqual(None, enemies)
-
+
+
def test_right_amount_of_enemies(self):
- enemies = Enemies(count = 6)
- self.assertEqual(6, len(enemies.sprites()))
+ for _ in range(10):
+ enemies = Enemies(count = 6)
+ self.assertTrue( len(enemies.sprites()) in range(3,7) )
def test_update_notcrashing(self):
enemies = Enemies(count = 6)