Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_Layer(self):
Layer()
def test_load_layer(self):
test_dir = self.get_test_loc('layers/layers')
expected_dir = self.get_test_loc('layers/expected')
for layer_id in os.listdir(test_dir):
layer_dir = os.path.join(test_dir, layer_id)
layer = Layer.load_layer(layer_dir)
expected = os.path.join(expected_dir, layer_id + '.expected.json')
result = layer.as_dict()
check_expected(result, expected, regen=False)