def test_create_delayed(self): self.browser._delay_cache = True post_save_update_cache(Browser, self.browser, created=True, raw=False) self.mocked_update_cache.assert_not_called()
def test_create(self): post_save_update_cache(Browser, self.browser, created=True, raw=False) self.mocked_update_cache.assert_called_once_with( 'Browser', 666, self.browser)
def test_raw(self): post_save_update_cache(Browser, self.browser, created=True, raw=True) self.mocked_update_cache.assert_not_called()
def test_create(self): post_save_update_cache(Browser, self.browser, created=True, raw=False) self.mocked_update_cache.assert_called_once_with( 'Browser', 666, self.browser, False)