Ejemplo n.º 1
0
    def test_update1( self ):
        b = MutableDict( {'a':1,'b':2} )
        b.update( [('a',3),('c',4)] )

        self.assertEqual( b.changed_keys(), ('a',) )
Ejemplo n.º 2
0
    def test_update1( self ):
        b = MutableDict( {'a':1,'b':2} )
        other = { 'a':3,'c':4 }
        b.update(other)

        self.assertEqual( b.changed_keys(), ('a',) )