Logo Search packages:      
Sourcecode: quickly-widgets version File versions  Download package

def widgets::tests::test_grid_filter::TestDictionaryGrid::test_constructor_with_dicts (   self  ) 

test creating a grid with dictionaries in the contructor

Definition at line 43 of file test_grid_filter.py.

00043                                          :
        """test creating a grid with dictionaries in the contructor"""
        dicts = [{"key1_1": "val1_1", "key1_2": "val1_2", "key1_3": "val1_3"},
                 {"key1_1": "val2_1", "key1_2": "val2_2", "key1_3": "val2_3"}]

        #build the CouchGrid
        grid = DictionaryGrid(dicts)
        self.assertEqual(grid.get_model().get_n_columns(),4)
        self.assertEqual(len(grid.get_model()),2)

    def test_constructor_with_dicts_and_keys(self):


Generated by  Doxygen 1.6.0   Back to index