]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
check for str.__mod__
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 18 Nov 2002 16:12:11 +0000 (16:12 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Mon, 18 Nov 2002 16:12:11 +0000 (16:12 +0000)
Lib/test/string_tests.py

index f2d685329e305d11ba4058dea5f9e8ddad05a0e3..3eb8785374fdae9ff24329fac1a23c6961f963bf 100644 (file)
@@ -282,6 +282,9 @@ def run_method_tests(test):
     test('zfill', '34', '34', 1)
     test('zfill', '34', '0034', 4)
 
+    test('__mod__', '+%s+', '+hello+', 'hello')
+    test('__mod__', '+%d+', '+10+', 10)
+
     # Encoding/decoding
     codecs = [('rot13', 'uryyb jbeyq'),
               ('base64', 'aGVsbG8gd29ybGQ=\n'),