def test_assigning_floating_ip_on_provisioning_marks_it_as_booked(self):
        data = self.get_valid_data()
        address = '127.0.0.1'
        data['external_ips'] = [address]

        # add this floating ip as available
        FloatingIP.objects.create(status='DOWN', cloud_project_membership=self.membership, address=address)

        response = self.client.post(self.instance_list_url, data)

        floating_ip_booked = FloatingIP.objects.filter(status='BOOKED',
                                                       cloud_project_membership=self.membership,
                                                       address=address).exists()

        self.assertEqual(response.status_code, status.HTTP_201_CREATED, response.data % 'Error: %r')
        self.assertTrue(floating_ip_booked)
dataset/ETHPy150Open opennode/nodeconductor/nodeconductor/iaas/tests/test_provisioning.py/InstanceProvisioningTest.test_assigning_floating_ip_on_provisioning_marks_it_as_booked/swapped operands of `%`