File: accept_twice.py

package info (click to toggle)
python-expecttest 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 140 kB
  • sloc: python: 535; makefile: 6; sh: 4
file content (31 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import expecttest
import unittest

S1 = "a\nb"
S2 = "c\nd"


class Test(expecttest.TestCase):
    def bar(self):
        self.assertExpectedInline(
            S1,
            """\
w""",
        )

    def test_a(self):
        self.bar()
        self.bar()

    def test_b(self):
        self.assertExpectedInline(
            S2,
            """\
x
y
z""",
        )


if __name__ == "__main__":
    unittest.main()