MCPcopy
hub / github.com/django/django / test_path

Method test_path

tests/model_fields/test_filepathfield.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class FilePathFieldTests(SimpleTestCase):
8 def test_path(self):
9 path = os.path.dirname(__file__)
10 field = FilePathField(path=path)
11 self.assertEqual(field.path, path)
12 self.assertEqual(field.formfield().path, path)
13
14 def test_callable_path(self):
15 path = os.path.dirname(__file__)

Callers

nothing calls this directly

Calls 2

formfieldMethod · 0.95
FilePathFieldClass · 0.90

Tested by

no test coverage detected