示例#1
0
 def test_two_package_includes(self):
     p1_path = pj('path', 'g', 'p1')
     p2_path = pj('path', 'g', 'p2')
     g_path = pj('path', 'g')
     p1 = Package(p1_path, [],   [])
     p2 = Package(p2_path, [p1], [])
     g = Group(g_path, [], [p2, p1])
     assert([p2_path, p1_path] == list(g.includes()))
示例#2
0
 def test_two_package_includes(self):
     p1_path = pj('path', 'g', 'p1')
     p2_path = pj('path', 'g', 'p2')
     g_path = pj('path', 'g')
     p1 = Package(p1_path, [],   [])
     p2 = Package(p2_path, [p1], [])
     g = Group(g_path, [], [p2, p1])
     assert([p2_path, p1_path] == list(g.includes()))
示例#3
0
 def test_one_package_includes(self):
     p_path = pj('path', 'g', 'p')
     g_path = pj('path', 'g')
     p = Package(p_path, [], [])
     g = Group(  g_path, [], [p])
     assert([p_path] == list(g.includes()))
示例#4
0
 def test_no_package_includes(self):
     g = Group(pj('path', 'g'), [], [])
     assert([] == list(g.includes()))
示例#5
0
 def test_one_package_includes(self):
     p_path = pj('path', 'g', 'p')
     g_path = pj('path', 'g')
     p = Package(p_path, [], [])
     g = Group(  g_path, [], [p])
     assert([p_path] == list(g.includes()))
示例#6
0
 def test_no_package_includes(self):
     g = Group(pj('path', 'g'), [], [])
     assert([] == list(g.includes()))