diff --git a/src/Test/TestContentUser.py b/src/Test/TestContentUser.py index f51f6bb4..6655f5e2 100644 --- a/src/Test/TestContentUser.py +++ b/src/Test/TestContentUser.py @@ -247,4 +247,15 @@ class TestUserContent: assert not site.content_manager.verifyFile( "data/users/1J6UrZMkarjVg5ax9W4qThir3BFUikbW6C/content.json", StringIO(json.dumps(user_content)), ignore_same=False - ) \ No newline at end of file + ) + + def testNewFile(self, site): + privatekey = "5KUh3PvNm5HUWoCfSUfcYvfQ2g3PrRNJWr6Q9eqdBGu23mtMntv" # For 1TeSTvb4w2PWE81S2rEELgmX2GCCExQGT + inner_path = "data/users/1NEWrZMkarjVg5ax9W4qThir3BFUikbW6C/content.json" + + site.storage.writeJson(inner_path, {"test": "data"}) + site.content_manager.sign(inner_path, privatekey) + assert "test" in site.storage.loadJson(inner_path) + + site.storage.delete(inner_path) +