def test_determine_type_returns_svg_on_svg_images(): f = join(TEST_FILES_DIR, 'nature.svg') ftype = diet.determine_type(f) assert ftype == 'svg'
def test_determine_type_returns_gif_on_gif_images(): f = join(TEST_FILES_DIR, 'nature.gif') ftype = diet.determine_type(f) assert ftype == 'gif'
def test_determine_type_returns_jpeg_on_jpeg_images(): f = join(TEST_FILES_DIR, 'vienna.jpg') ftype = diet.determine_type(f) assert ftype == 'jpeg'
def test_determine_type_returns_text_on_yaml(): f = join(TEST_FILES_DIR, 'config.yaml') ftype = diet.determine_type(f) assert ftype == 'text'