def test_check_begin_string_not_found_raises_exception( self, simple_encoded_msg): with pytest.raises(ParsingError): DecoderApp.check_begin_string(simple_encoded_msg[10:])
def test_check_begin_string_not_at_start_raises_exception( self, simple_encoded_msg): with pytest.raises(ParsingError): DecoderApp.check_begin_string(b"34=0" + settings.SOH + simple_encoded_msg)
def test_check_begin_string(self, simple_encoded_msg): assert DecoderApp.check_begin_string(simple_encoded_msg) == ( b"FIX.4.4", 9)