jenkins-bot merged this change.

View Change

Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
[test] Test archivebot.str2size for "M" shorthand

Change-Id: I52b611d803e2af975b7907684bace8d9a00fa494
---
M tests/archivebot_tests.py
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index d1efe6d..f279766 100644
--- a/tests/archivebot_tests.py
+++ b/tests/archivebot_tests.py
@@ -111,6 +111,7 @@
self.assertEqual(archivebot.str2size('0'), (0, 'B'))
self.assertEqual(archivebot.str2size('3000'), (3000, 'B'))
self.assertEqual(archivebot.str2size('4 K'), (4096, 'B'))
+ self.assertEqual(archivebot.str2size('1 M'), (1048576, 'B'))
self.assertEqual(archivebot.str2size('2T'), (2, 'T'))
# TODO: should probably be recognized 2000?
self.assertEqual(archivebot.str2size('2 000'), (2, 'B'))

To view, visit change 430616. To unsubscribe, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I52b611d803e2af975b7907684bace8d9a00fa494
Gerrit-Change-Number: 430616
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot <>