Commit d6c94730 authored by Michal Čihař's avatar Michal Čihař

Test percent in format string

parent 00306882
......@@ -451,6 +451,15 @@ class PythonFormatCheckTest(TestCase):
Unit('python_format')
))
def test_percent_format(self):
self.assertFalse(self.check.check_single(
u'%d%% string',
u'%d%% string',
'python-format',
Language('cs'),
Unit('python_percent_format')
))
def test_named_format(self):
self.assertFalse(self.check.check_single(
u'%(name)s string',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment