def test_doublelines(self): myprogram.doublelines(TestDoubleit.numbers_file_testor) old_vals = [int(line) for line in open(TestDoubleit.numbers_file_template)] new_vals = [int(line) for line in open(TestDoubleit.numbers_file_testor)] for old_val, new_val in zip(old_vals, new_vals) : assert int(new_val) == int(old_val) * 2
def test_doublelines(self): myprogram.doublelines(TestDoubleIt.file_tester) old_vals = [int(line) for line in open(TestDoubleIt.file_template)] new_vals = [int(line) for line in open(TestDoubleIt.file_tester)] for old_val, new_val in zip(old_vals, new_vals): assert int(new_val) == int(old_val) * 2 print("Test complete!")
def test_doublelines(self): myprogram.doublelines(TestDoubleit.numbers_file_tester) old_vals = [ int(line) for line in open(TestDoubleit.numbers_file_template) ] new_vals = [ int(line) for line in open(TestDoubleit.numbers_file_tester) ]
def test_doublelines(self): myprogram.doublelines(TestDoubleit.numbers_file_testor) old_vals = [int(line) for line in open(TestDoubleit.numbers_file_template)] new_vals = [int(line) for line in open(TestDoubleit.numbers_file_testor)] for old_val, new_val in zip(old_vals, new_vals): assert int(new_val) == int(old_val) * 2