def test_hrm007_add_staff_to_warehouse(self):
        """
            @case: HRM007
            @description: Add a premade made staff to a Warehouse

            @TestDoc: https://docs.google.com/spreadsheet/ccc?key=0AmB3hMcgB-3idG1XNGhhRG9QWF81dUlKLXpJaFlCMFE
            @Test Wiki: http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/Testing
        """
        browser = self.browser
        config = self.config
        self.login(account="admin", nexturl="inv/warehouse")
        self.dt_filter("Lospalos Warehouse")
        self.dt_action()
        url = browser.current_url
        url_parts = url.split("/")
        try:
            org_id = int(url_parts[-2])
        except:
            org_id = int(url_parts[-1])
        browser.get((config.url, org_id) % "%s/inv/warehouse/%s/human_resource")

        # Check if add button is present on the page. Click it if found.
        add_btn = self.browser.find_elements_by_id("show-add-btn")
        if len(add_btn) > 0:
            add_btn[0].click()

        select_from_registry_btn = self.browser.find_element_by_id("select_from_registry")
        select_from_registry_btn.click()

        self.create("hrm_human_resource",
                    [
                     ( "person_id",
                       "Goku Gohan")
                     ]
                     )
dataset/ETHPy150Open sahana/eden/modules/tests/staff/add_staff_to_warehouse.py/AddStaffToWarehouse.test_hrm007_add_staff_to_warehouse/swapped operands of `%`