Example #1
0
class EllipsisCheckTest(TestCase):
    def setUp(self):
        self.check = EllipsisCheck()

    def test_none(self):
        self.assertFalse(
            self.check.check_source(
                ['text'],
                MockUnit(),
            )
        )

    def test_good(self):
        self.assertFalse(
            self.check.check_source(
                ['text…'],
                MockUnit(),
            )
        )

    def test_failing(self):
        self.assertTrue(
            self.check.check_source(
                ['text...'],
                MockUnit(),
            )
        )
Example #2
0
class EllipsisCheckTest(TestCase):
    def setUp(self):
        self.check = EllipsisCheck()

    def test_none(self):
        self.assertFalse(
            self.check.check_source(
                ['text'],
                '',
                Unit(),
            )
        )

    def test_good(self):
        self.assertFalse(
            self.check.check_source(
                [u'text…'],
                '',
                Unit(),
            )
        )

    def test_failing(self):
        self.assertTrue(
            self.check.check_source(
                ['text...'],
                '',
                Unit(),
            )
        )
Example #3
0
class EllipsisCheckTest(TestCase):
    def setUp(self):
        self.check = EllipsisCheck()

    def test_none(self):
        self.assertFalse(self.check.check_source(["text"], MockUnit()))

    def test_good(self):
        self.assertFalse(self.check.check_source([u"text…"], MockUnit()))

    def test_failing(self):
        self.assertTrue(self.check.check_source(["text..."], MockUnit()))
Example #4
0
 def setUp(self):
     self.check = EllipsisCheck()
Example #5
0
 def setUp(self):
     self.check = EllipsisCheck()