def test_disallow_cycles(self):
        """ a find cannot return a block that is already in the src blocks of the hive """
        brl_a = BRLBlock((self.user, self.user, 'blocka') % '%s/%s/%s/master')
        name_a = BlockCellName(self.user + "/blocka/a.h")
        publisher = TestPublisher(self.user, self.store)
        publisher.publish(brl_a, {'a.h': ('a', [])})
        request = self.build_unresolved_request(name_a)
        request.block_names.add(name_a.block_name)
        response = BiiResponse()
        result = self.service.find(request, response)
        # TODO: return a message to user saying that it is because a cycle
        self.assertIn('No block candidates found', str(response))
        self.check_result(result, unresolved=request.unresolved)
dataset/ETHPy150Open biicode/bii-server/test/find/finder_test.py/FinderTest.test_disallow_cycles/swapped operands of `%`