예제 #1
0
def test_determine_type_returns_svg_on_svg_images():
    f = join(TEST_FILES_DIR, 'nature.svg')
    ftype = diet.determine_type(f)
    assert ftype == 'svg'
예제 #2
0
def test_determine_type_returns_gif_on_gif_images():
    f = join(TEST_FILES_DIR, 'nature.gif')
    ftype = diet.determine_type(f)
    assert ftype == 'gif'
예제 #3
0
def test_determine_type_returns_jpeg_on_jpeg_images():
    f = join(TEST_FILES_DIR, 'vienna.jpg')
    ftype = diet.determine_type(f)
    assert ftype == 'jpeg'
예제 #4
0
def test_determine_type_returns_text_on_yaml():
    f = join(TEST_FILES_DIR, 'config.yaml')
    ftype = diet.determine_type(f)
    assert ftype == 'text'
예제 #5
0
def test_determine_type_returns_svg_on_svg_images():
    f = join(TEST_FILES_DIR, 'nature.svg')
    ftype = diet.determine_type(f)
    assert ftype == 'svg'
예제 #6
0
def test_determine_type_returns_jpeg_on_jpeg_images():
    f = join(TEST_FILES_DIR, 'vienna.jpg')
    ftype = diet.determine_type(f)
    assert ftype == 'jpeg'
예제 #7
0
def test_determine_type_returns_gif_on_gif_images():
    f = join(TEST_FILES_DIR, 'nature.gif')
    ftype = diet.determine_type(f)
    assert ftype == 'gif'
예제 #8
0
def test_determine_type_returns_text_on_yaml():
    f = join(TEST_FILES_DIR, 'config.yaml')
    ftype = diet.determine_type(f)
    assert ftype == 'text'