def METHOD_NAME(self):
    geojson = {
        'type':
        'FeatureCollection',
        'features': [{
            'type': 'Feature',
            'geometry': {
                'type':
                'Polygon',
                'coordinates': [[[0., 0.], [0., 0.4], [0.4, 0.4],
                                 [0.4, 0.], [0., 0.]]]
            },
            'properties': {
                'class_id': self.class_id,
            }
        }]
    }
    false_source = self.build_source(geojson, all_touched=False)
    true_source = self.build_source(geojson, all_touched=True)
    chip = false_source.get_chip(false_source.extent)
    expected_chip = self.background_class_id * np.ones((10, 10, 1))
    np.testing.assert_array_equal(chip, expected_chip)
    chip = true_source.get_chip(true_source.extent)
    expected_chip = self.background_class_id * np.ones((10, 10, 1))
    expected_chip[0:1, 0:1, 0] = self.class_id
    np.testing.assert_array_equal(chip, expected_chip)