Beispiel #1
0
def test_pixel_iter_0_3_should_be_blue():
    pi = libstegan.PixelIterator(generic_conf_dict, generic_img)
    for x in range(4):
        pixel = next(pi)
    assert pixel[0] == 'blue'
Beispiel #2
0
def test_pixel_iter_0_1_should_be_whatever():
    pi = libstegan.PixelIterator(generic_conf_dict, generic_img)
    next(pi)
    zeroth_first = next(pi)
    assert zeroth_first[0] == 'whatever'
Beispiel #3
0
def test_pixeliter_0_0_should_be_0_0():
    pi = libstegan.PixelIterator(generic_conf_dict, generic_img)
    zeroth_zeroth = next(pi)
    assert zeroth_zeroth[1] == 0 and zeroth_zeroth[1] == 0
Beispiel #4
0
def test_pixel_iter_0_0_should_be_red():
    pi = libstegan.PixelIterator(generic_conf_dict, generic_img)
    zeroth_zeroth = next(pi)
    assert zeroth_zeroth[0] == 'red'
Beispiel #5
0
def test_pixeliterator_length():
    pi = libstegan.PixelIterator(generic_conf_dict, generic_img)
    assert len(list(pi)) == 16