Ticket #16183: auth_permissions_test_fix_20110609.diff
File auth_permissions_test_fix_20110609.diff, 2.0 KB (added by , 13 years ago) |
---|
-
django/contrib/auth/tests/permissions.py
33 33 create_permissions(contenttypes_models, [], verbosity=0) 34 34 35 35 stderr = StringIO() 36 call_command('loaddata', ' test_permissions.json',36 call_command('loaddata', 'permissionstestdata.json', 37 37 verbosity=0, commit=False, stderr=stderr) 38 38 self.assertEqual(stderr.getvalue(), '') -
django/contrib/auth/fixtures/permissionstestdata.json
1 1 [ 2 2 { 3 "pk": 5,3 "pk": 4, 4 4 "model": "contenttypes.contenttype", 5 5 "fields": { 6 6 "model": "contenttype", … … 18 18 } 19 19 }, 20 20 { 21 "pk": 8,21 "pk": 7, 22 22 "model": "contenttypes.contenttype", 23 23 "fields": { 24 24 "model": "logentry", … … 27 27 } 28 28 }, 29 29 { 30 "pk": 4,31 "model": "contenttypes.contenttype",32 "fields": {33 "model": "message",34 "name": "message",35 "app_label": "auth"36 }37 },38 {39 30 "pk": 1, 40 31 "model": "contenttypes.contenttype", 41 32 "fields": { … … 45 36 } 46 37 }, 47 38 { 48 "pk": 6,39 "pk": 5, 49 40 "model": "contenttypes.contenttype", 50 41 "fields": { 51 42 "model": "session", … … 54 45 } 55 46 }, 56 47 { 57 "pk": 7,48 "pk": 6, 58 49 "model": "contenttypes.contenttype", 59 50 "fields": { 60 51 "model": "site", … … 313 304 "date_joined": "2010-11-19 06:26:59" 314 305 } 315 306 } 316 ] 317 No newline at end of file 307 ]