コード例 #1
0
ファイル: test_wire.py プロジェクト: jcass77/WTFIX
 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:])
コード例 #2
0
ファイル: test_wire.py プロジェクト: jcass77/WTFIX
 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)
コード例 #3
0
ファイル: test_wire.py プロジェクト: jcass77/WTFIX
 def test_check_begin_string(self, simple_encoded_msg):
     assert DecoderApp.check_begin_string(simple_encoded_msg) == (
         b"FIX.4.4", 9)