<NME> managed_layer_test.py
<BEF> ADDFILE
<MSG> tests(python): add managed_layer_test

<DFF> @@ -0,0 +1,9 @@
+import neuroglancer
+
+def test_visible():
+    layer = neuroglancer.ManagedLayer('a', {'type': 'segmentation', 'visible': False})
+    assert layer.name == 'a'
+    assert layer.visible == False
+    assert layer.to_json() == {'name': 'a', 'type': 'segmentation', 'visible': False}
+    layer.visible = True
+    assert layer.to_json() == {'name': 'a', 'type': 'segmentation'}

tests(python): add managed_layer_test