summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fixtures_regress/fixtures/path.containing.dots.json9
-rw-r--r--tests/fixtures_regress/tests.py8
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/fixtures_regress/fixtures/path.containing.dots.json b/tests/fixtures_regress/fixtures/path.containing.dots.json
new file mode 100644
index 0000000000..d62ac03fff
--- /dev/null
+++ b/tests/fixtures_regress/fixtures/path.containing.dots.json
@@ -0,0 +1,9 @@
+[
+ {
+ "pk": "1",
+ "model": "fixtures_regress.absolute",
+ "fields": {
+ "name": "Load Absolute Path Test"
+ }
+ }
+]
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index 4bfb45ea39..c5ef83bee0 100644
--- a/tests/fixtures_regress/tests.py
+++ b/tests/fixtures_regress/tests.py
@@ -165,6 +165,14 @@ class TestFixtures(TestCase):
os.chdir(cwd)
self.assertEqual(Absolute.objects.count(), 1)
+ def test_path_containing_dots(self):
+ management.call_command(
+ 'loaddata',
+ 'path.containing.dots.json',
+ verbosity=0,
+ )
+ self.assertEqual(Absolute.objects.count(), 1)
+
def test_unknown_format(self):
"""
Test for ticket #4371 -- Loading data of an unknown format should fail