Beispiel #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)
Beispiel #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)
Beispiel #3
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)
Beispiel #4
0
 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)
Beispiel #5
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)
Beispiel #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)