def test_no_bulk_find_ancestor_structures(self): original_version = Mock(name="original_version") block_id = Mock(name="block_id") self.conn.find_ancestor_structures.return_value = [MagicMock(name="result")] result = self.bulk.find_ancestor_structures(original_version, block_id) self.assertConnCalls(call.find_ancestor_structures(original_version, block_id)) self.assertEqual(result, self.conn.find_ancestor_structures.return_value) self.assertCacheNotCleared()
def test_no_bulk_find_ancestor_structures(self): original_version = Mock(name='original_version') block_id = Mock(name='block_id') self.conn.find_ancestor_structures.return_value = [MagicMock(name='result')] result = self.bulk.find_ancestor_structures(original_version, block_id) self.assertConnCalls(call.find_ancestor_structures(original_version, block_id)) self.assertEqual(result, self.conn.find_ancestor_structures.return_value) self.assertCacheNotCleared()