コード例 #1
0
ファイル: test_seq.py プロジェクト: saisunku/LiberTEM
def test_detect_seq(lt_ctx):
    path = SEQ_TESTDATA_PATH
    assert SEQDataSet.detect_params(path, lt_ctx.executor) is not False
コード例 #2
0
def test_detect_unicode_error(raw_with_zeros, lt_ctx):
    path = raw_with_zeros._path
    SEQDataSet.detect_params(path, InlineJobExecutor())
コード例 #3
0
ファイル: test_seq.py プロジェクト: saisunku/LiberTEM
def test_detect_non_seq(raw_with_zeros, lt_ctx):
    path = raw_with_zeros._path
    # raw_with_zeros is not a SEQ file, caused UnicodeDecodeError before:
    assert SEQDataSet.detect_params(path, InlineJobExecutor()) is False