def testTransferNetworkByteLimitError(self):
    message = rdf_flows.GrrMessage(name="TransferBuffer",
                                   payload=self.buffer_ref,
                                   network_bytes_limit=300)

    # We just get a client alert and a status message back.
    responses = self.transfer_buf.HandleMessage(message)

    client_alert = responses[0].payload
    self.assertTrue(str(client_alert) in "Network limit exceeded")

    status = responses[1].payload
    self.assertTrue("Action exceeded network send limit"
                    in str(status.backtrace))
    self.assertEqual(status.status,
                     rdf_flows.GrrStatus.ReturnedStatus.NETWORK_LIMIT_EXCEEDED)
dataset/ETHPy150Open google/grr/grr/client/client_actions/standard_test.py/TestNetworkByteLimits.testTransferNetworkByteLimitError/swapped operands of `in`