(self)
| 697 | self.assertIn('"pk": "%s"' % m2.id, result) |
| 698 | |
| 699 | def test_dumpdata_with_file_output(self): |
| 700 | management.call_command("loaddata", "fixture1.json", verbosity=0) |
| 701 | self._dumpdata_assert( |
| 702 | ["fixtures"], |
| 703 | '[{"pk": 1, "model": "fixtures.category", "fields": ' |
| 704 | '{"description": "Latest news stories", "title": "News Stories"}}, ' |
| 705 | '{"pk": 2, "model": "fixtures.article", "fields": ' |
| 706 | '{"headline": "Poker has no place on ESPN", ' |
| 707 | '"pub_date": "2006-06-16T12:00:00"}}, ' |
| 708 | '{"pk": 3, "model": "fixtures.article", "fields": ' |
| 709 | '{"headline": "Time to reform copyright", ' |
| 710 | '"pub_date": "2006-06-16T13:00:00"}}]', |
| 711 | filename="dumpdata.json", |
| 712 | ) |
| 713 | |
| 714 | def test_dumpdata_with_file_gzip_output(self): |
| 715 | management.call_command("loaddata", "fixture1.json", verbosity=0) |
nothing calls this directly
no test coverage detected