예제 #1
0
    def test_last_modified_bulk(self):
        lm = self.app.last_modified
        Application.save_docs([self.app])
        app = Application.get(self.app._id)
        self.assertGreater(app.last_modified, lm)

        lm = self.app.last_modified
        Application.bulk_save([self.app])
        app = Application.get(self.app._id)
        self.assertGreater(app.last_modified, lm)
예제 #2
0
    def test_last_modified_bulk(self):
        lm = self.app.last_modified
        Application.save_docs([self.app])
        app = Application.get(self.app._id)
        self.assertGreater(app.last_modified, lm)

        lm = self.app.last_modified
        Application.bulk_save([self.app])
        app = Application.get(self.app._id)
        self.assertGreater(app.last_modified, lm)