MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / UserEmail

Class UserEmail

tests/test_utils.py:12–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10class TestLazyRegexCompiler:
11 def test_lazy_regex_compiler_verify_laziness_of_descriptor(self):
12 class UserEmail:
13 EMAIL_REGEX = LazyRegexCompiler("@", flags=32)
14
15 descriptor = UserEmail.__dict__["EMAIL_REGEX"]
16 assert descriptor._compiled_regex is None

Calls 1

LazyRegexCompilerClass · 0.90

Used in the wild real call sites across dependent graphs

searching dependent graphs…