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()))
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()))
def test_no_package_includes(self): g = Group(pj('path', 'g'), [], []) assert([] == list(g.includes()))