Esempio n. 1
0
    def test_set_should_override_existing_property(self):
        # Setup
        bucket = Bucket(Properties=dict(VersioningConfiguration=dict(
            Status="Suspended")))

        # Exercise
        bucket.versioning = True

        # Verify
        assert bucket["Properties"]["VersioningConfiguration"][
            "Status"] == "Enabled"
Esempio n. 2
0
    def test_should_set_underlying_property(self, status, is_enabled):
        bucket = Bucket()
        bucket.versioning = is_enabled

        assert bucket["Properties"]["VersioningConfiguration"][
            "Status"] == status