from . import OsmFixtureTest


class FixNullNetwork(OsmFixtureTest):
    def test_routes_with_no_network(self):
        # ref="N 4", route=road, but no network=*
        # so we should get something that has no network, but a shield text of
        # '4'
        self.load_fixtures(['http://www.openstreetmap.org/relation/2307408'])

        self.assert_has_feature(
            11, 1038, 705, 'roads',
            {'kind': 'major_road', 'shield_text': '4', 'network': type(None)})

from . import OsmFixtureTest


class FixNullNetwork(OsmFixtureTest):
    def test_routes_with_no_network(self):
        # ref="N 4", route=road, but no network=*
        # so we should get something that has no network, but a shield text of
        # '4'
        self.load_fixtures(
            ['http://www.openstreetmap.org/relation/2307408'],
            clip=self.tile_bbox(11, 1038, 705))

        self.assert_has_feature(
            11, 1038, 705, 'roads',
            {'kind': 'major_road', 'shield_text': '4', 'network': type(None)})

Add clip to reduce fixture size.
Add clip to reduce fixture size.

  from . import OsmFixtureTest
  
  
  class FixNullNetwork(OsmFixtureTest):
      def test_routes_with_no_network(self):
          # ref="N 4", route=road, but no network=*
          # so we should get something that has no network, but a shield text of
          # '4'
+         self.load_fixtures(
-         self.load_fixtures(['http://www.openstreetmap.org/relation/2307408'])
+             ['http://www.openstreetmap.org/relation/2307408'],
+             clip=self.tile_bbox(11, 1038, 705))
  
          self.assert_has_feature(
              11, 1038, 705, 'roads',
              {'kind': 'major_road', 'shield_text': '4', 'network': type(None)})
  
Add clip to reduce fixture size.
## Code Before:
from . import OsmFixtureTest


class FixNullNetwork(OsmFixtureTest):
    def test_routes_with_no_network(self):
        # ref="N 4", route=road, but no network=*
        # so we should get something that has no network, but a shield text of
        # '4'
        self.load_fixtures(['http://www.openstreetmap.org/relation/2307408'])

        self.assert_has_feature(
            11, 1038, 705, 'roads',
            {'kind': 'major_road', 'shield_text': '4', 'network': type(None)})

## Instruction:
Add clip to reduce fixture size.
## Code After:
from . import OsmFixtureTest


class FixNullNetwork(OsmFixtureTest):
    def test_routes_with_no_network(self):
        # ref="N 4", route=road, but no network=*
        # so we should get something that has no network, but a shield text of
        # '4'
        self.load_fixtures(
            ['http://www.openstreetmap.org/relation/2307408'],
            clip=self.tile_bbox(11, 1038, 705))

        self.assert_has_feature(
            11, 1038, 705, 'roads',
            {'kind': 'major_road', 'shield_text': '4', 'network': type(None)})
