MCPcopy
hub / github.com/alecthomas/voluptuous / test_email_validation

Function test_email_validation

voluptuous/tests/tests.py:291–296  ·  view source on GitHub ↗

Test with valid email address

()

Source from the content-addressed store, hash-verified

289
290
291def test_email_validation():
292 """Test with valid email address"""
293 schema = Schema({"email": Email()})
294 out_ = schema({"email": "example@example.com"})
295
296 assert 'example@example.com"', out_.get("url")
297
298
299def test_email_validation_with_none():

Callers

nothing calls this directly

Calls 2

SchemaClass · 0.90
EmailFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…