MCPcopy
hub / github.com/django/django / check

Method check

tests/gis_tests/gdal_tests/test_driver.py:70–77  ·  view source on GitHub ↗
(count_val)

Source from the content-addressed store, hash-verified

68 """
69
70 def check(count_val):
71 reg.reset_mock()
72 count.return_value = count_val
73 Driver.ensure_registered()
74 if count_val:
75 self.assertFalse(reg.called)
76 else:
77 reg.assert_called_once_with()
78
79 check(0)
80 check(120)

Callers

nothing calls this directly

Calls 1

ensure_registeredMethod · 0.80

Tested by

no test coverage detected