示例#1
0
 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()
示例#2
0
 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)
示例#3
0
 def test_raw(self):
     post_save_update_cache(Browser, self.browser, created=True, raw=True)
     self.mocked_update_cache.assert_not_called()
示例#4
0
 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()
示例#5
0
 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)
示例#6
0
 def test_raw(self):
     post_save_update_cache(Browser, self.browser, created=True, raw=True)
     self.mocked_update_cache.assert_not_called()