'Tests the active and inactive children returned for different split test configurations.'

def test_active_and_inactive_children(self):

    split_test_module = self.split_test_module
    children = split_test_module.get_children()
    split_test_module.user_partition_id = (-1)
    [active_children, inactive_children] = split_test_module.active_and_inactive_children()
    self.assertEqual(active_children, [])
    self.assertEqual(inactive_children, children)
    split_test_module.user_partition_id = 0
    split_test_module.user_partitions = [UserPartition(0, 'first_partition', 'First    Partition', [Group('0', 'alpha'), Group('1', 'beta')])]
    [active_children, inactive_children] = split_test_module.active_and_inactive_children()
    self.assertEqual(active_children, children)
    self.assertEqual(inactive_children, [])
    self.split_test_module.user_partitions = [UserPartition(0, 'first_partition', 'First    Partition', [Group('0', 'alpha')])]
    [active_children, inactive_children] = split_test_module.active_and_inactive_children()
    self.assertEqual(active_children, [children[0]])
    self.assertEqual(inactive_children, [children[1]])
    self.split_test_module.user_partitions = [UserPartition(0, 'first_partition', 'First    Partition', [Group('0', 'alpha'), Group('2', 'gamma')])]
    [active_children, inactive_children] = split_test_module.active_and_inactive_children()
    self.assertEqual(active_children, [children[0]])
    self.assertEqual(inactive_children, [children[1]])
    self.split_test_module.user_partition_id = 2
    [active_children, inactive_children] = split_test_module.active_and_inactive_children()
    self.assertEqual(active_children, [])
    self.assertEqual(inactive_children, children)
