Beispiel #1
0
def test_guess_fallback():
    mimetype, _ = guess('ha', 'text/plain')
    assert mimetype == 'text/plain'
Beispiel #2
0
def test_guess_recognised():
    mimetype, _ = guess('file.html')
    assert mimetype == 'text/html'
Beispiel #3
0
def test_guess_recognised():
    mimetype, _ = guess('file.html', 'text/plain')
    assert mimetype == 'text/html'
Beispiel #4
0
def test_guess_fallback():
    mimetype, _ = guess('ha', fallback='text/plain')
    assert mimetype == 'text/plain'