Python pydantic.EmailStr() Examples
The following are 1
code examples of pydantic.EmailStr().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pydantic
, or try the search function
.
![](https://www.programcreek.com/common/static/images/search.png)
Example #1
Source File: test_networks.py From pydantic with MIT License | 5 votes |
def test_email_str(): class Model(BaseModel): v: EmailStr assert Model(v=EmailStr('foo@example.org')).v == 'foo@example.org' assert Model(v='foo@example.org').v == 'foo@example.org'