Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test for ajax_grid_list view function.

  • Loading branch information...
commit c0892b0f7cd0957be2129a04c55869f199b0e873 1 parent 25d621c
@akavlie authored
View
8 apps/grid/tests/test_views.py
@@ -200,10 +200,10 @@ def test_add_new_grid_package_view(self):
self.assertContains(response, 'Test package')
- #def test_ajax_grid_list_view(self):
- #url = reverse('ajax_grid_list') + '?q=django&package_id=1'
- #response = self.client.get(url)
- #self.assertContains(grid, 'django-cms')
+ def test_ajax_grid_list_view(self):
+ url = reverse('ajax_grid_list') + '?q=Testing&package_id=2'
+ response = self.client.get(url)
+ self.assertContains(response, 'Testing')
def test_delete_gridpackage_view(self):
View
2  fixtures/test_initial_data.json
@@ -19,7 +19,7 @@
{ "fields" : { "created" : "2010-01-01 12:00:00",
"grid" : 1,
"modified" : "2010-01-01 12:00:00",
- "package" : 2
+ "package" : 1
},
"model" : "grid.gridpackage",
"pk" : 2
Please sign in to comment.
Something went wrong with that request. Please try again.