'Test that verticals are created for the configuration groups when
a spit test module is edited.'

def test_create_groups(self):

    split_test = self.get_item_from_modulestore(self.split_test_usage_key, verify_is_draft=True)
    self.assertEqual((-1), split_test.user_partition_id)
    self.assertEqual(0, len(split_test.children))
    split_test = self._update_partition_id(self.first_user_partition.id)
    self.assertEqual(2, len(split_test.children))
    vertical_0 = self.get_item_from_modulestore(split_test.children[0], verify_is_draft=True)
    vertical_1 = self.get_item_from_modulestore(split_test.children[1], verify_is_draft=True)
    self.assertEqual('vertical', vertical_0.category)
    self.assertEqual('vertical', vertical_1.category)
    self.assertEqual(('Group    ID    ' + unicode((MINIMUM_STATIC_PARTITION_ID + 1))), vertical_0.display_name)
    self.assertEqual(('Group    ID    ' + unicode((MINIMUM_STATIC_PARTITION_ID + 2))), vertical_1.display_name)
    self.assertEqual(2, len(split_test.group_id_to_child))
    self.assertEqual(vertical_0.location, split_test.group_id_to_child[str(self.first_user_partition_group_1.id)])
    self.assertEqual(vertical_1.location, split_test.group_id_to_child[str(self.first_user_partition_group_2.id)])
