def test_custom_content_type(self):
        test_file = NamedBlobFile("some text", filename=u"sometext.txt")
        test_file.contentType = 'foo/bar'
        test_doc = create(Builder("document").attach(test_file))

        self.download(test_doc)

        self.assertResponseHeader('content-type', 'foo/bar')
    def test_custom_content_type(self):
        test_file = NamedBlobFile("some text", filename=u"sometext.txt")
        test_file.contentType = "foo/bar"
        test_doc = create(Builder("document").attach(test_file))

        self.download(test_doc)

        self.assertResponseHeader("content-type", "foo/bar")