예제 #1
0
def test_photo_extensions():
    photo = Photo()
    extensions = photo.extensions

    assert 'jpg' in extensions
    assert 'jpeg' in extensions
    assert 'nef' in extensions
    assert 'dng' in extensions
    assert 'gif' in extensions

    valid_extensions = Photo.get_valid_extensions()

    assert extensions == valid_extensions, valid_extensions
예제 #2
0
def test_photo_extensions():
    photo = Photo()
    extensions = photo.extensions

    assert "jpg" in extensions
    assert "jpeg" in extensions
    assert "nef" in extensions
    assert "dng" in extensions
    assert "gif" in extensions

    valid_extensions = Photo.get_valid_extensions()

    assert extensions == valid_extensions, valid_extensions