diff options
author | 2020-02-28 10:57:02 +0100 | |
---|---|---|
committer | 2020-02-28 10:57:02 +0100 | |
commit | 3d07d5e8b1a326e59c59a05dc29b78b9b3de4c4b (patch) | |
tree | a5c5082c771b4ebf79d5f6115a34d7194a418224 /tests | |
parent | Fix mismatched constant names in syncer tests (diff) | |
parent | Merge pull request #798 from python-discord/bug/mod/bot-1v/infr-edit-task-cancel (diff) |
Merge branch 'master' into feat/backend/b496/rename-constants
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]]) |