def test_nf_none(self): filename = 'nf-none.txt' self.assertEqual('nf:', tf.process_file(None, None, None, filename))
def test_nf_d(self): filename = 'nf-d.txt' self.assertEqual('nf: d', tf.process_file(None, None, None, filename))
def test_nf_both(self): filename = 'nf-both.txt' self.assertEqual('', tf.process_file(None, None, None, filename))
def test_missing_unix(self): filename = 'missing-unix.rawtxt' self.assertEqual('nl: unix missing ws: eol', tf.process_file(None, None, None, filename))
def test_changeOS(self): filename = 'change_os.rawtxt' self.assertEqual('nl: dos unix ws: eof', tf.process_file(None, None, None, filename))
def test_missing_dos(self): filename = 'missing-dos.rawtxt' self.assertEqual('nl: dos missing ws: eol', tf.process_file(None, None, None, filename))
def test_unix(self): filename = 'unix.rawtxt' self.assertEqual('ws: eol eof', tf.process_file(None, None, None, filename))
def test_mac(self): filename = 'mac.rawtxt' self.assertEqual('nl: mac', tf.process_file(None, None, None, filename))
def test_dos(self): filename = 'dos.rawtxt' self.assertEqual('nl: dos ws: eol', tf.process_file(None, None, None, filename))
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))