コード例 #1
0
ファイル: test_pydie.py プロジェクト: aubricus/pydie
    def test_fetch(self):
        response = anu.fetch_list(anu.TYPE_UINT16, anu.MAX_BLOCK_SIZE, length=10)
        success = response['success']
        data = response['data']
        length = len(data)

        assert success
        assert length == 10
コード例 #2
0
ファイル: test_pydie.py プロジェクト: aubricus/pydie
    def test_fetch_uint16(self):
        response = anu.fetch_list(anu.TYPE_UINT16, anu.MAX_BLOCK_SIZE, length=10)
        success = response['success']
        data = response['data']
        length = len(data)

        assert success
        assert length == 10
        assert 0 <= data[0] <= numbers.MAX_UINT16