diff options
| author | 2020-02-18 18:23:38 +0100 | |
|---|---|---|
| committer | 2020-02-18 18:23:38 +0100 | |
| commit | 33769405549efc3c0571cd1b2da5fa0b59ec742a (patch) | |
| tree | 3715f54c16279499a9a3c6e54f0e650c47b85946 | |
| parent | Snekbox small refactoring (diff) | |
Split assertion onto separate lines
Co-Authored-By: Mark <[email protected]>
| -rw-r--r-- | tests/bot/cogs/test_snekbox.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bot/cogs/test_snekbox.py b/tests/bot/cogs/test_snekbox.py index 293efed0f..b5190cd7f 100644 --- a/tests/bot/cogs/test_snekbox.py +++ b/tests/bot/cogs/test_snekbox.py @@ -35,7 +35,8 @@ class SnekboxTests(unittest.TestCase): @async_test async def test_upload_output_reject_too_long(self): """Reject output longer than MAX_PASTE_LEN.""" - self.assertEqual(await self.cog.upload_output("-" * (snekbox.MAX_PASTE_LEN + 1)), "too long to upload") + result = await self.cog.upload_output("-" * (snekbox.MAX_PASTE_LEN + 1)) + self.assertEqual(result, "too long to upload") @async_test async def test_upload_output(self): |