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

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

Ensure that collumn types are set properly

Definition at line 135 of file test_dictionary_grid.py.

00135                                      :
        """Ensure that collumn types are set properly"""

        keys = ["id","price","bool?"]
        grid = DictionaryGrid(None, keys)
        for c in grid.get_columns():
            col_type = c.column_type
            key = c.key
            if key == "id":
                self.assertEqual(col_type,gobject.TYPE_INT)
            elif key == "price":
                self.assertEqual(col_type,gobject.TYPE_FLOAT)
            elif key == "bool?":
                self.assertEqual(col_type,gobject.TYPE_BOOLEAN)
            else:
                self.assertEqual("Extra key found",False) 

    def test_use_custom_columns(self):


Generated by  Doxygen 1.6.0   Back to index