MCPcopy
hub / github.com/django/django / test_development

Method test_development

tests/version/tests.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12
13class VersionTests(SimpleTestCase):
14 def test_development(self):
15 get_git_changeset.cache_clear()
16 ver_tuple = (1, 4, 0, "alpha", 0)
17 # This will return a different result when it's run within or outside
18 # of a git clone: 1.4.devYYYYMMDDHHMMSS or 1.4.
19 ver_string = get_version(ver_tuple)
20 self.assertRegex(ver_string, r"1\.4(\.dev[0-9]+)?")
21
22 @skipUnless(
23 hasattr(django.utils.version, "__file__"),

Callers 1

Calls 1

get_versionFunction · 0.90

Tested by

no test coverage detected