def test_options_valid_font(): path = _get_test_ttf_path() assert os.path.basename(ttfcomp.get_options( [path]).font_path) == TEST_TTF_FILENAME
def test_options_invalid_font(): path = get_input_path('not_a_font.ttf') assert ttfcomp.get_options([path]).font_path is None
def test_options_invalid_font_path(): assert ttfcomp.get_options(['not_a_file']).font_path is None
def test_options_valid_font(): path = _get_test_ttf_path() assert os.path.basename( ttfcomp.get_options([path]).font_path) == TEST_TTF_FILENAME
def test_options_invalid_font(): path = get_input_path('not_a_font.ttf') assert ttfcomp.get_options([path]).font_path is None
def test_options_invalid_font_path(): assert ttfcomp.get_options(['not_a_file']).font_path is None