Permalink
Browse files

Test for ajax_grid_list view function.

  • Loading branch information...
1 parent 25d621c commit c0892b0f7cd0957be2129a04c55869f199b0e873 @akavlie committed Mar 17, 2011
Showing with 5 additions and 5 deletions.
  1. +4 −4 apps/grid/tests/test_views.py
  2. +1 −1 fixtures/test_initial_data.json
@@ -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):
@@ -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

0 comments on commit c0892b0

Please sign in to comment.