assert_has_feature(
    16, 10478, 25338, 'roads',
    { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' })

# http://www.openstreetmap.org/way/258020271
assert_has_feature(
    16, 11077, 25458, 'roads',
    { 'id': 258020271, 'kind': 'aerialway', 'aerialway': 't_bar' })

# http://www.openstreetmap.org/way/256717307
assert_has_feature(
    16, 18763, 24784, 'roads',
    { 'id': 256717307, 'kind': 'aerialway', 'aerialway': 'j_bar' })

# http://www.openstreetmap.org/way/258132198
# verify that no aerialway subkind exists when its value is yes
with features_in_tile_layer(16, 10910, 25120, 'roads') as features:
    for feature in features:
        props = feature['properties']
        if props['id'] == 258132198:
            assert props['kind'] == 'aerialway'
            assert 'aerialway' not in props
            break
    else:
        assert 0, 'No feature with id 258132198 found'

assert_has_feature(
    16, 10478, 25338, 'roads',
    { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' })

# http://www.openstreetmap.org/way/258020271
assert_has_feature(
    16, 11077, 25458, 'roads',
    { 'id': 258020271, 'kind': 'aerialway', 'aerialway': 't_bar' })

# http://www.openstreetmap.org/way/256717307
assert_has_feature(
    16, 18763, 24784, 'roads',
    { 'id': 256717307, 'kind': 'aerialway', 'aerialway': 'j_bar' })

# http://www.openstreetmap.org/way/258132198
assert_has_feature(
    16, 10910, 25120, 'roads',
    { 'id': 258132198, 'kind': 'aerialway', 'aerialway': type(None) })

Simplify test to check for no aerialway property
Simplify test to check for no aerialway property

  assert_has_feature(
      16, 10478, 25338, 'roads',
      { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' })
  
  # http://www.openstreetmap.org/way/258020271
  assert_has_feature(
      16, 11077, 25458, 'roads',
      { 'id': 258020271, 'kind': 'aerialway', 'aerialway': 't_bar' })
  
  # http://www.openstreetmap.org/way/256717307
  assert_has_feature(
      16, 18763, 24784, 'roads',
      { 'id': 256717307, 'kind': 'aerialway', 'aerialway': 'j_bar' })
  
  # http://www.openstreetmap.org/way/258132198
+ assert_has_feature(
+     16, 10910, 25120, 'roads',
+     { 'id': 258132198, 'kind': 'aerialway', 'aerialway': type(None) })
- # verify that no aerialway subkind exists when its value is yes
- with features_in_tile_layer(16, 10910, 25120, 'roads') as features:
-     for feature in features:
-         props = feature['properties']
-         if props['id'] == 258132198:
-             assert props['kind'] == 'aerialway'
-             assert 'aerialway' not in props
-             break
-     else:
-         assert 0, 'No feature with id 258132198 found'
  
Simplify test to check for no aerialway property
## Code Before:
assert_has_feature(
    16, 10478, 25338, 'roads',
    { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' })

# http://www.openstreetmap.org/way/258020271
assert_has_feature(
    16, 11077, 25458, 'roads',
    { 'id': 258020271, 'kind': 'aerialway', 'aerialway': 't_bar' })

# http://www.openstreetmap.org/way/256717307
assert_has_feature(
    16, 18763, 24784, 'roads',
    { 'id': 256717307, 'kind': 'aerialway', 'aerialway': 'j_bar' })

# http://www.openstreetmap.org/way/258132198
# verify that no aerialway subkind exists when its value is yes
with features_in_tile_layer(16, 10910, 25120, 'roads') as features:
    for feature in features:
        props = feature['properties']
        if props['id'] == 258132198:
            assert props['kind'] == 'aerialway'
            assert 'aerialway' not in props
            break
    else:
        assert 0, 'No feature with id 258132198 found'

## Instruction:
Simplify test to check for no aerialway property
## Code After:
assert_has_feature(
    16, 10478, 25338, 'roads',
    { 'id': 219071307, 'kind': 'minor_road', 'service': 'drive_through' })

# http://www.openstreetmap.org/way/258020271
assert_has_feature(
    16, 11077, 25458, 'roads',
    { 'id': 258020271, 'kind': 'aerialway', 'aerialway': 't_bar' })

# http://www.openstreetmap.org/way/256717307
assert_has_feature(
    16, 18763, 24784, 'roads',
    { 'id': 256717307, 'kind': 'aerialway', 'aerialway': 'j_bar' })

# http://www.openstreetmap.org/way/258132198
assert_has_feature(
    16, 10910, 25120, 'roads',
    { 'id': 258132198, 'kind': 'aerialway', 'aerialway': type(None) })
