MCPcopy
hub / github.com/django/django / test_module_path

Method test_module_path

tests/tasks/test_tasks.py:259–271  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

257 self.assertEqual(test_tasks.noop_task_async.name, "noop_task_async")
258
259 def test_module_path(self):
260 self.assertEqual(test_tasks.noop_task.module_path, "tasks.tasks.noop_task")
261 self.assertEqual(
262 test_tasks.noop_task_async.module_path, "tasks.tasks.noop_task_async"
263 )
264
265 self.assertIs(
266 import_string(test_tasks.noop_task.module_path), test_tasks.noop_task
267 )
268 self.assertIs(
269 import_string(test_tasks.noop_task_async.module_path),
270 test_tasks.noop_task_async,
271 )
272
273 def test_pickle_task(self):
274 pickled_task = pickle.dumps(test_tasks.noop_task)

Callers

nothing calls this directly

Calls 1

import_stringFunction · 0.90

Tested by

no test coverage detected