Esempio n. 1
0
 def test_all_zeroes(self):
     output_file = "testdata/allzeroes.output"
     self.assertTrue(process_file("testdata/allzeroes.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(filecmp.cmp(output_file,
                                 "testdata/allzeroes.expected"))
     os.remove(output_file)
Esempio n. 2
0
 def test_single_instance_type(self):
     output_file = "testdata/single_instance_type.output"
     self.assertTrue(
         process_file("testdata/single_instance_type.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(
         filecmp.cmp(output_file, "testdata/single_instance_type.expected"))
     os.remove(output_file)
Esempio n. 3
0
File: tests.py Progetto: cobusc/misc
 def test_single_instance_type(self):
     output_file = "testdata/single_instance_type.output"
     self.assertTrue(process_file("testdata/single_instance_type.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(filecmp.cmp(output_file, "testdata/single_instance_type.expected"))
     os.remove(output_file)
Esempio n. 4
0
File: tests.py Progetto: cobusc/misc
 def test_all_ones(self):
     output_file = "testdata/allones.output"
     self.assertTrue(process_file("testdata/allones.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(filecmp.cmp(output_file, "testdata/allones.expected"))
     os.remove(output_file)
Esempio n. 5
0
File: tests.py Progetto: cobusc/misc
 def test_proper(self):
     output_file = "testdata/valid.output"
     self.assertTrue(process_file("testdata/valid.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(filecmp.cmp(output_file, "testdata/valid.expected"))
     os.remove(output_file)
Esempio n. 6
0
 def test_proper(self):
     output_file = "testdata/valid.output"
     self.assertTrue(process_file("testdata/valid.txt", output_file))
     self.validate_output(output_file)
     self.assertTrue(filecmp.cmp(output_file, "testdata/valid.expected"))
     os.remove(output_file)