Exemplo 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)
Exemplo 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)
Exemplo n.º 3
0
Arquivo: tests.py Projeto: 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)
Exemplo n.º 4
0
Arquivo: tests.py Projeto: 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)
Exemplo n.º 5
0
Arquivo: tests.py Projeto: 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)
Exemplo 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)