@pytest.mark.parametrize('key', ('NETAPP_STORAGE', 'GUARDED_ADDONS_PATH', 'MEDIA_ROOT', 'TMP_PATH', 'MEDIA_ROOT'))
def test_base_paths_bytestring(key):
 assert isinstance(getattr(settings, key), str)

@ pytest . mark . parametrize ( 'key' , ( 'NETAPP_STORAGE' , 'GUARDED_ADDONS_PATH' , 'MEDIA_ROOT' , 'TMP_PATH' , 'MEDIA_ROOT' ) ) def test_base_paths_bytestring ( key ) : assert isinstance ( getattr ( settings , key ) , str )
make sure all relevant base paths are bytestrings .