async def METHOD_NAME(self):
    config = Config()
    config.ALLOWED_SOURCES = []
    ctx = Context(None, config, None)
    is_valid = loader.validate(ctx, "https://www.google.com/logo.jpg")
    expect(is_valid).to_be_true()
    is_valid = loader.validate(ctx, "http://www.google.com/logo.jpg")
    expect(is_valid).to_be_false()