12 def test_crlf_with_lf_file(self):
17 dir_path = os.path.dirname(os.path.realpath(__file__))
24 self.assertFalse(result,
"crlf were detected in test file.")
26 def test_crlf_with_crlf_file(self):
31 dir_path = os.path.dirname(os.path.realpath(__file__))
38 self.assertTrue(result,
"crlf were not detected in test file.")
40 def test_cr_with_lf_file(self):
45 dir_path = os.path.dirname(os.path.realpath(__file__))
52 self.assertFalse(result,
"cr were detected in test file.")
54 def test_cr_with_cr_file(self):
59 dir_path = os.path.dirname(os.path.realpath(__file__))
66 self.assertTrue(result,
"cr were not detected in test file.")
68 def test_tab_with_lf_file(self):
73 dir_path = os.path.dirname(os.path.realpath(__file__))
80 self.assertFalse(result,
"tab were detected in test file.")
82 def test_tab_with_tab_file(self):
87 dir_path = os.path.dirname(os.path.realpath(__file__))
94 self.assertTrue(result,
"tab were not detected in test file.")
96 def test_lgpl_with_lf_file(self):
101 dir_path = os.path.dirname(os.path.realpath(__file__))
108 self.assertFalse(result,
"lgpl were detected in test file.")
110 def test_lgpl_with_lgpl_file(self):
112 common.g_trace =
True 115 dir_path = os.path.dirname(os.path.realpath(__file__))
122 self.assertTrue(result,
"lgpl were not detected in test file.")
124 def test_oslmlog_with_lf_file(self):
126 common.g_trace =
True 129 dir_path = os.path.dirname(os.path.realpath(__file__))
136 self.assertFalse(result,
"oslmlog were detected in test file.")
138 def test_oslmlog_with_oslmlog_file(self):
140 common.g_trace =
True 143 dir_path = os.path.dirname(os.path.realpath(__file__))
150 self.assertTrue(result,
"oslmlog were not detected in test file.")
152 def test_digraph_with_lf_file(self):
154 common.g_trace =
True 157 dir_path = os.path.dirname(os.path.realpath(__file__))
164 self.assertFalse(result,
"digraphs were detected in test file.")
166 def test_digraphs_with_digraphs_file(self):
168 common.g_trace =
True 171 dir_path = os.path.dirname(os.path.realpath(__file__))
178 self.assertTrue(result,
"digraphs were not detected in test file.")
180 def test_digraphs_with_nodigraphs_file(self):
182 common.g_trace =
True 185 dir_path = os.path.dirname(os.path.realpath(__file__))
192 self.assertFalse(result,
"digraphs were detected in test file.")
194 def test_doxygen_with_lf_file(self):
196 common.g_trace =
True 199 dir_path = os.path.dirname(os.path.realpath(__file__))
206 self.assertFalse(result,
"doxygen were detected in test file.")
208 def test_doxygen_with_doxygen_file(self):
210 common.g_trace =
True 213 dir_path = os.path.dirname(os.path.realpath(__file__))
220 self.assertTrue(result,
"doxygen were not detected in test file.")
222 def test_copain_with_lf_file(self):
224 common.g_trace =
True 227 dir_path = os.path.dirname(os.path.realpath(__file__))
234 self.assertFalse(result,
"copain were detected in test file.")
236 def test_copain_with_copain_file(self):
238 common.g_trace =
True 241 dir_path = os.path.dirname(os.path.realpath(__file__))
248 self.assertTrue(result,
"copain were not detected in test file.")
251 if __name__ ==
'__main__':
def forbidtoken(files, config_name)