Commits

Chris Moffitt committed 88a7794

Some minor fixes to the product export and updates to test cases since python
is no longer a valid export option.

Comments (0)

Files changed (2)

satchmo/apps/product/tests.py

         self.assertTrue(response.has_header('Content-Type'))
         self.assertEqual('text/xml', response['Content-Type'])
 
-        form_data['format'] = 'python'
-        response = self.client.post(url, form_data)
-        self.assertTrue(response.has_header('Content-Type'))
-        self.assertEqual('text/python', response['Content-Type'])
-
     def test_zip_export_content_type(self):
         """
         Test the content type of an exported zip file.

satchmo/apps/product/views/adminviews.py

             return form.export(request)
     else:
         form = ProductExportForm()
-        fileform = ProductImportForm()
+    fileform = ProductImportForm()
 
 
     ctx = RequestContext(request, {