Skip to content

Commit

Permalink
Test for ajax_grid_list view function.
Browse files Browse the repository at this point in the history
  • Loading branch information
akavlie committed Mar 17, 2011
1 parent 25d621c commit c0892b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/grid/tests/test_views.py
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion fixtures/test_initial_data.json
Expand Up @@ -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
Expand Down

0 comments on commit c0892b0

Please sign in to comment.