Test default mature flag state
@@ -47,6 +47,7 @@ def create_mock_image(override=None):
'mature': False,
'meta_data': meta_data
}
+ if override:
for k, v in override.items():
test_data[k] = v
schema = {}
@@ -102,6 +103,12 @@ class TestImage:
mature_work = create_mock_image({'mature': True})
assert mature_work['mature']
+ @staticmethod
+ def test_default_maturity():
+ # Default to not flagged
+ sfw = create_mock_image()
+ assert not sfw['mature']
+
class TestCleanup:
@staticmethod
