'@case: warehouse_02
@description: Search Warehouse - Advanced Search by Organization'

def test_warehouse_02_search_by_Organization(self):

    w = current.s3db['inv_warehouse']
    o = current.s3db['org_organisation']
    key = 'Timor-Leste    Red    Cross    Society    (Cruz    Vermelha    de    Timor-Leste)'
    dbRowCount = current.db((((w.deleted != 'T') & (w.organisation_id == o.id)) & (o.name == key))).count()
    self.search(self.search.advanced_form, True, ({'name': 'warehouse_search_org', 'label': key, 'value': True},), dbRowCount, manual_check=functools.partial(_kwsearch, keyword=key, items=dbRowCount, column=3))
