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)
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)
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)
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)
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)