From 4cd82553d080b9f395884700ee865621af9fb4c4 Mon Sep 17 00:00:00 2001
From: ulif <uli@gnufix.de>
Date: Sat, 25 Feb 2017 01:31:27 +0100
Subject: [PATCH] Split overlong test.

---
 tests/test_random_sources.py | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/tests/test_random_sources.py b/tests/test_random_sources.py
index 8b9d610..ba89f04 100644
--- a/tests/test_random_sources.py
+++ b/tests/test_random_sources.py
@@ -229,17 +229,20 @@ class TestRealDiceRandomSource(object):
         out, err = capsys.readouterr()
         assert "Please roll 5 dice (or a single dice 5 times)." in out
 
-    def test_choice_copes_with_small_sequences(self, capsys, fake_input):
-        # We handle sequences correctly, that have less elements than the used
-        # dice sides.
+    def test_choice_copes_with_sequence_len_1(self, capsys, fake_input):
+        # choice copes with sequences of len 1
         src = RealDiceRandomSource(None)
-        src.dice_sides = 6
-        # A length of 1 requires no rolls
         fake_input(["1"])
         picked = src.choice([1])
         out, err = capsys.readouterr()
         assert "roll" not in out
         assert picked == 1
+
+    def test_choice_copes_with_small_sequences(self, capsys, fake_input):
+        # We handle sequences correctly, that have less elements than the used
+        # dice sides.
+        src = RealDiceRandomSource(None)
+        src.dice_sides = 6
         # A length of 2,3 only requires 1 roll
         for choice_length in (2, 3):
             fake_input(["1"])
-- 
GitLab