コード例 #1
0
ファイル: test_perceptops.py プロジェクト: longears/rigor
def test_fetch():
    ops = PerceptOps(kConfig)

    def read(locator, credentials):
        return (locator, credentials)

    ops.read = read
    percept = Percept()
    percept.locator = constants.kExampleTextFile
    result = ops.fetch(percept)
    assert result == (percept.locator, None)
コード例 #2
0
ファイル: test_perceptops.py プロジェクト: longears/rigor
 def test_imageops_fetch():
     ops = ImageOps(kConfig)
     percept = Percept()
     percept.locator = constants.kExampleImageFile
     result = ops.fetch(percept)
     assert result.shape == constants.kExampleImageDimensions