Lines Matching refs:closed
40 closed = f.read()
42 f.write(closed)
50 self.assertEqual(f.read(), closed)
54 self.assertEqual(self.pindent(clean, '-c'), closed)
55 self.assertEqual(self.pindent(closed, '-d'), clean)
63 self.assertEqual(f.read(), closed)
65 broken = self.lstriplines(closed)
78 def pindent_test(self, clean, closed): argument
79 self.assertEqual(self.pindent(clean, '-c'), closed)
80 self.assertEqual(self.pindent(closed, '-d'), clean)
81 broken = self.lstriplines(closed)
82 self.assertEqual(self.pindent(broken, '-r', '-e', '-s', '4'), closed)
150 closed = textwrap.dedent("""\
227 self.pindent_test(clean, closed)
240 closed = textwrap.dedent("""\
253 self.pindent_test(clean, closed)
261 closed = textwrap.dedent("""\
268 self.assertEqual(self.pindent(clean, '-c'), closed)
269 self.assertEqual(self.pindent(closed, '-d'), clean)
270 broken = self.lstriplines(closed)
271 self.assertEqual(self.pindent(broken, '-r', '-e', '-s', '9'), closed)
277 closed = textwrap.dedent("""\
284 self.assertEqual(self.pindent(clean, '-c'), closed)
285 self.assertEqual(self.pindent(closed, '-d'), clean)
286 broken = self.lstriplines(closed)
287 self.assertEqual(self.pindent(broken, '-r'), closed)
299 closed = textwrap.dedent("""\
310 self.assertEqual(self.pindent(clean, '-c'), closed)
311 self.assertEqual(self.pindent(closed, '-d'), clean)
319 closed = textwrap.dedent("""\
325 self.pindent_test(clean, closed)
331 closed = textwrap.dedent("""\
335 self.pindent_test(clean, closed)