Commit 3798d7da authored by Michal Čihař's avatar Michal Čihař

Add more tests for SameCheck

parent b1cb60c8
......@@ -14,13 +14,42 @@ class Language(object):
self.code = code
class CheckTest(TestCase):
def test_same(self):
check = SameCheck()
self.assertFalse(check.check_single(
class SameCheckTest(TestCase):
def setUp(self):
self.check = SameCheck()
def test_not_same(self):
self.assertFalse(self.check.check_single(
'source',
'translation',
'',
Language('cs'),
None
))
def test_same(self):
self.assertTrue(self.check.check_single(
'source',
'source',
'',
Language('cs'),
None
))
def test_same_english(self):
self.assertFalse(self.check.check_single(
'source',
'source',
'',
Language('en'),
None
))
def test_same_format(self):
self.assertFalse(self.check.check_single(
'%(source)s',
'%(source)s',
'python-format',
Language('cs'),
None
))
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