Beispiel #1
0
 def do_stdout(self, stdout_file):
     with self.open_output() as ans, open(stdout_file, 'rb') as out:
         return compare_stream(ans, out)
Beispiel #2
0
 def do_stdout(self, stdout_file):
     with open(stdout_file, 'rb') as file:
         return compare_stream(BytesIO(str(self.a + self.b).encode()), file)
Beispiel #3
0
def compare(a, b):
    return compare_stream(BytesIO(a), BytesIO(b))
Beispiel #4
0
 def do_output(self, output_file):
     with open(output_file, 'rb') as out, self.open_output() as ans:
         return compare_stream(ans, out)
Beispiel #5
0
 def do_output(self, output_file):
     with open(output_file, 'rb') as out:
         return compare_stream(BytesIO(self.str_output.encode()), out)