Пример #1
0
 def test_nf_none(self):
     filename = 'nf-none.txt'
     self.assertEqual('nf:', tf.process_file(None, None, None, filename))
Пример #2
0
 def test_nf_d(self):
     filename = 'nf-d.txt'
     self.assertEqual('nf: d', tf.process_file(None, None, None, filename))
Пример #3
0
 def test_nf_both(self):
     filename = 'nf-both.txt'
     self.assertEqual('', tf.process_file(None, None, None, filename))
Пример #4
0
 def test_missing_unix(self):
     filename = 'missing-unix.rawtxt'
     self.assertEqual('nl: unix missing ws: eol',
                      tf.process_file(None, None, None, filename))
Пример #5
0
 def test_changeOS(self):
     filename = 'change_os.rawtxt'
     self.assertEqual('nl: dos unix ws: eof',
                      tf.process_file(None, None, None, filename))
Пример #6
0
 def test_missing_dos(self):
     filename = 'missing-dos.rawtxt'
     self.assertEqual('nl: dos missing ws: eol',
                      tf.process_file(None, None, None, filename))
Пример #7
0
 def test_unix(self):
     filename = 'unix.rawtxt'
     self.assertEqual('ws: eol eof',
                      tf.process_file(None, None, None, filename))
Пример #8
0
 def test_mac(self):
     filename = 'mac.rawtxt'
     self.assertEqual('nl: mac', tf.process_file(None, None, None,
                                                 filename))
Пример #9
0
 def test_dos(self):
     filename = 'dos.rawtxt'
     self.assertEqual('nl: dos ws: eol',
                      tf.process_file(None, None, None, filename))
Пример #10
0
 def ignore_test_textMode(self):
     """Find occurrences of \r\r\n (that is CR CR LF) for a newline."""
     filename = 'text_mode.rawtxt'
     self.assertEqual(filename + ': confused',
                      tf.process_file(None, None, None, filename))