コード例 #1
0
 def test_framemeta_pop(self):
     a = FrameMeta({'A': 1, 'B': 2, 'c': 3})
     assert_equal(a.pop('a'), 1)
     assert_not_in('a', a)
     assert_equal(a.pop('a'), None)
コード例 #2
0
 def test_framemeta_pop(self):
     a = FrameMeta({'A': 1, 'b': 'test', 'TesT': 'AaA'})
     res = a.pop('test')
     assert_equal(res, 'AaA')
     assert_not_in('test', a.keys())
     assert_not_in('TesT', a.keys())