summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r--bitbake/lib/bb/tests/data.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py
index 9b09ff4c61..81e4091ff7 100644
--- a/bitbake/lib/bb/tests/data.py
+++ b/bitbake/lib/bb/tests/data.py
@@ -121,6 +121,12 @@ class DataExpansions(unittest.TestCase):
121 keys = self.d.keys() 121 keys = self.d.keys()
122 self.assertEqual(keys, ['value_of_foo', 'foo', 'bar']) 122 self.assertEqual(keys, ['value_of_foo', 'foo', 'bar'])
123 123
124 def test_keys_deletion(self):
125 newd = bb.data.createCopy(self.d)
126 newd.delVar("bar")
127 keys = newd.keys()
128 self.assertEqual(keys, ['value_of_foo', 'foo'])
129
124class TestNestedExpansions(unittest.TestCase): 130class TestNestedExpansions(unittest.TestCase):
125 def setUp(self): 131 def setUp(self):
126 self.d = bb.data.init() 132 self.d = bb.data.init()