Lines Matching +full:entry +full:- +full:name
1 # SPDX-License-Identifier: GPL-2.0+
5 # Test for the Entry class
16 entry = None variable
30 return dtb.GetNode('/binman/u-boot')
33 """Test that we can import Entry subclassess successfully"""
36 global entry
37 import entry
38 entry.Entry.Create(None, self.GetNode(), 'u-boot')
42 global entry
43 if entry:
44 reload(entry)
46 import entry
47 entry.Entry.Create(None, self.GetNode(), 'u-boot-spl')
48 del entry
51 """Test the Entry bass class"""
52 import entry
53 base_entry = entry.Entry(None, None, None, read_node=False)
57 """Test that unknown entry types are detected"""
58 import entry
59 Node = collections.namedtuple('Node', ['name', 'path'])
60 node = Node('invalid-name', 'invalid-path')
62 entry.Entry.Create(None, node, node.name)
63 self.assertIn("Unknown entry type 'invalid-name' in node "
64 "'invalid-path'", str(e.exception))
67 """Test Entry.GetUniqueName"""
68 import entry
69 Node = collections.namedtuple('Node', ['name', 'parent'])
71 base_entry = entry.Entry(None, None, base_node, read_node=False)
74 sub_entry = entry.Entry(None, None, sub_node, read_node=False)
79 import entry
80 base_entry = entry.Entry(None, None, None, read_node=False)