-class TestDocumentStorage(TestStorageBase):
-
- def test_storage_empty(self):
- storage = models.DocumentStorage(self.dirpath)
- eq_(storage.all(), [])
+ @patch('apiclient.api_call')
+ def test_publish_multiple(self, api_call):
+ self.book[0].head.set_publishable(True)
+ self.book[0].split(slug='part-2')
+ self.book[1].commit('take me \n<!-- TRIM_BEGIN -->\n too')
+ self.book[1].head.set_publishable(True)
+ self.book.publish(self.user)
+ api_call.assert_called_with(self.user, 'books', {"book_xml": 'publish me\n too'})