~ubuntu-branches/ubuntu/precise/horizon/precise-updates

« back to all changes in this revision

Viewing changes to horizon/tests/table_tests.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-03-20 14:49:24 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20120320144924-s8rpema4nnko6oeg
Tags: 2012.1~rc1-0ubuntu1
New upstream release. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
        self.assertQuerysetEqual(self.table.filtered_data,
503
503
                                 ['<FakeObject: object_2>'])
504
504
 
 
505
        # Ensure fitering respects the request method, e.g. no filter here
 
506
        req = self.factory.get('/my_url/', {action_string: '2'})
 
507
        self.table = MyTable(req, TEST_DATA)
 
508
        handled = self.table.maybe_handle()
 
509
        self.assertEqual(handled, None)
 
510
        self.assertQuerysetEqual(self.table.filtered_data,
 
511
                                 ['<FakeObject: object_1>',
 
512
                                  '<FakeObject: object_2>',
 
513
                                  '<FakeObject: object_3>'])
 
514
 
505
515
        # Updating and preemptive actions
506
516
        params = {"table": "my_table", "action": "row_update", "obj_id": "1"}
507
517
        req = self.factory.get('/my_url/',