old_contents: #!/usr/bin/python
  # coding: utf8
  
  import geocoder
  
  
  us_address = '595 Market St'
  us_city = 'San Francisco'
  us_state = 'CA'
  us_zipcode = '94105'
  
  
  def test_uscensus():
      g = geocoder.uscensus(' '.join([us_address, us_city, us_state, us_zipcode]))
      assert g.ok
      assert g.city == us_city.upper()
  
  
  def test_uscensus_reverse():
      g = geocoder.uscensus((38.904722, -77.016389), method='reverse')
      assert g.ok
  
new_contents: #!/usr/bin/python
  # coding: utf8
  
  import geocoder
  
  
  us_address = '595 Market St'
  us_city = 'San Francisco'
  us_state = 'CA'
  us_zipcode = '94105'
  
  
  def test_uscensus():
      g = geocoder.uscensus(' '.join([us_address, us_city, us_state, us_zipcode]), timeout=10)
      assert g.ok
      assert g.city == us_city.upper()
  
  
  def test_uscensus_reverse():
      g = geocoder.uscensus((38.904722, -77.016389), method='reverse', timeout=10)
      assert g.ok
  
subject: set 10sec timeout for uscensus tests