Update libbe.storage.util.settings_object tests for new ._get_saved_settings
authorW. Trevor King <wking@drexel.edu>
Thu, 21 Jan 2010 17:47:38 +0000 (12:47 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 21 Jan 2010 17:47:38 +0000 (12:47 -0500)
libbe/storage/util/settings_object.py

index 181d4ab3a8e74f2d74c883248fa671086fba22e3..ca94f23eac0e1df267bf70c9968ca02793dcdadd 100644 (file)
@@ -326,7 +326,8 @@ if libbe.TESTING == True:
             self.failUnless(t.content_type == "text/plain", t.content_type)
             self.failUnless(t.settings["Content-type"] == EMPTY,
                             t.settings["Content-type"])
-            self.failUnless(t._get_saved_settings() == {},
+            self.failUnless(t._get_saved_settings() ==
+                            {"Content-type":"text/plain"},
                             t._get_saved_settings())
             t.content_type = "text/html"
             self.failUnless(t.content_type == "text/html",