#NEWLINE# def test_assert_serial( self , * incoming_bytes ) : #NEWLINE# #INDENT# serial_msg = bytearray ( ) #NEWLINE# res = self . board . sp . read ( ) #NEWLINE# while res : #NEWLINE# #INDENT# serial_msg += res #NEWLINE# res = self . board . sp . read ( ) #NEWLINE# #UNINDENT# self . assertEqual ( bytearray ( self ) , serial_msg )