예제 #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)
예제 #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)
예제 #3
0
파일: tests.py 프로젝트: 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)
예제 #4
0
파일: tests.py 프로젝트: 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)
예제 #5
0
파일: tests.py 프로젝트: 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)
예제 #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)