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

def widgets::tests::test_dictionary_grid::TestDictionaryGrid::test_constructor_with_dicts_and_keys (   self  ) 

test creating a grid with dictionaries in the contructor
as well as keys in the contructor, with fewer keys than
items in the dictionary

Definition at line 56 of file test_dictionary_grid.py.

00056                                                   :
        """test creating a grid with dictionaries in the contructor
        as well as keys in the contructor, with fewer keys than
        items in the dictionary

        """
        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"}]
        keys = ["key1_1", "key1_3"]

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

    def test_extra_data_from_selected(self):


Generated by  Doxygen 1.6.0   Back to index