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

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

Test a simple creating An AsynchTaskProgressBox 
and then adding keys and dictionaries after creation

Definition at line 33 of file test_dictionary_grid.py.

00033                                      :
        """Test a simple creating An AsynchTaskProgressBox 
        and then adding keys and dictionaries after creation

        """
        grid = DictionaryGrid()
        self.assertEqual((grid != None), True)
        grid.keys = ["key1","key2"]
        self.assertEqual(grid.get_model().get_n_columns(),3)
        grid.append_row({"key1":"val11","key2":"val12"})
        self.assertEqual(len(grid.get_model()),1)


    def test_constructor_with_dicts(self):


Generated by  Doxygen 1.6.0   Back to index