AC-1040 Fix inventory tree view.

This commit is contained in:
Chris Church
2014-03-25 14:20:37 -04:00
parent 6504a8ae40
commit 42e9451742
4 changed files with 11 additions and 5 deletions

View File

@@ -807,11 +807,15 @@ class InventoryTest(BaseTest):
def test_get_inventory_tree_view(self):
# Group A is parent of B, B is parent of C, C is parent of D.
g_a = self.inventory_a.groups.create(name='A')
g_a.inventory_source
g_b = self.inventory_a.groups.create(name='B')
g_b.inventory_source
g_b.parents.add(g_a)
g_c = self.inventory_a.groups.create(name='C')
g_c.inventory_source
g_c.parents.add(g_b)
g_d = self.inventory_a.groups.create(name='D')
g_d.inventory_source
g_d.parents.add(g_c)
url = reverse('api:inventory_tree_view', args=(self.inventory_a.pk,))