'@case: mem004-04
@description: Search Members - Advanced Search by Country'

def test_mem004_04_member_search_advance_by_Country(self):

    self.start()
    self.advancedSearchTest(['Timor-Leste'])
    member = current.s3db['member_membership']
    loc = current.s3db['gis_location']
    dbRowCount = current.db((((member.deleted != 'T') & (member.location_id == loc.id)) & (loc.L0 == 'Timor-Leste'))).count()
    self.compareRowCount(dbRowCount)
