'@case: warehouse_03
@description: Search Warehouse - Advanced Search by District'

def test_warehouse_03_search_by_District(self):

    w = current.s3db['inv_warehouse']
    l = current.s3db['gis_location']
    key = 'Viqueque'
    dbRowCount = current.db((((w.deleted != 'T') & (w.location_id == l.id)) & (l.L2 == key))).count()
    self.search(self.search.advanced_form, True, ({'name': 'warehouse_search_location', 'label': key, 'value': True},), dbRowCount, manual_check=functools.partial(_kwsearch, keyword=key, items=dbRowCount, column=5))
