diff options
| author | 2020-02-27 21:34:07 +0100 | |
|---|---|---|
| committer | 2020-02-27 21:34:07 +0100 | |
| commit | b3c725a4be25537cd2bb3ce4fad69441ecb55702 (patch) | |
| tree | 824851cd2edd692d22307ff795e631b2736794d0 /tests | |
| parent | Remove unnecessary newlines from call. (diff) | |
| parent | Merge pull request #798 from python-discord/bug/mod/bot-1v/infr-edit-task-cancel (diff) | |
Merge branch 'master' into fuzzy_zero_div
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/bot/test_utils.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/bot/test_utils.py b/tests/bot/test_utils.py index 58ae2a81a..d7bcc3ba6 100644 --- a/tests/bot/test_utils.py +++ b/tests/bot/test_utils.py @@ -35,18 +35,3 @@ class CaseInsensitiveDictTests(unittest.TestCase): instance = utils.CaseInsensitiveDict() instance.update({'FOO': 'bar'}) self.assertEqual(instance['foo'], 'bar') - - -class ChunkTests(unittest.TestCase): - """Tests the `chunk` method.""" - - def test_empty_chunking(self): - """Tests chunking on an empty iterable.""" - generator = utils.chunks(iterable=[], size=5) - self.assertEqual(list(generator), []) - - def test_list_chunking(self): - """Tests chunking a non-empty list.""" - iterable = [1, 2, 3, 4, 5] - generator = utils.chunks(iterable=iterable, size=2) - self.assertEqual(list(generator), [[1, 2], [3, 4], [5]]) |