예제 #1
0
def test_fromFile_subtracts_background():
  img_bg = image.fromFile(IMGFILE, IMGFILE)
  img = image.fromFile(IMGFILE)
  bg = image.fromFile(IMGFILE).toBackground()
예제 #2
0
def test_images_should_equal():
  img = image.fromFile(IMGFILE)
  ok_(img==img)
예제 #3
0
def test_images_shoud_not_equal():
  img = image.fromFile(IMGFILE)
  img2 = img.copy()
  img2._img[0,0,0] = 999999
  ok_(img!=img2)
예제 #4
0
def test_fromFile_returns_stack():
  img = image.fromFile(IMGFILE)
  assert_is_instance(img, image.Stack)
예제 #5
0
def test_fromFile_subtracts_background():
    img_bg = image.fromFile(IMGFILE, IMGFILE)
    img = image.fromFile(IMGFILE)
    bg = image.fromFile(IMGFILE).toBackground()
예제 #6
0
def test_images_shoud_not_equal():
    img = image.fromFile(IMGFILE)
    img2 = img.copy()
    img2._img[0, 0, 0] = 999999
    ok_(img != img2)
예제 #7
0
def test_images_should_equal():
    img = image.fromFile(IMGFILE)
    ok_(img == img)
예제 #8
0
def test_fromFile_returns_stack():
    img = image.fromFile(IMGFILE)
    assert_is_instance(img, image.Stack)