grr/server/grr_response_server/flows/general/transfer_test.py
def testGetMBR(self):
    """Test that the GetMBR flow works."""

    flow_id = flow_test_lib.TestFlowHelper(
        transfer.GetMBR.__name__,
        ClientMock(self.mbr),
        token=self.token,
        client_id=self.client_id)

    results = flow_test_lib.GetFlowResults(self.client_id, flow_id)
    self.assertLen(results, 1)
    self.assertEqual(results[0], self.mbr)

    if data_store.AFF4Enabled():
      fd = aff4.FACTORY.Open(self.client_id.Add("mbr"), token=self.token)
      self.assertEqual(fd.Read(4096), self.mbr)
Test that the GetMBR flow works.
Test that the GetMBR flow works.
Test that the GetMBR flow works .
def testGetMBR(self):
    flow_id = flow_test_lib.TestFlowHelper(
        transfer.GetMBR.__name__,
        ClientMock(self.mbr),
        token=self.token,
        client_id=self.client_id)
    results = flow_test_lib.GetFlowResults(self.client_id, flow_id)
    self.assertLen(results, 1)
    self.assertEqual(results[0], self.mbr)
    if data_store.AFF4Enabled():
      fd = aff4.FACTORY.Open(self.client_id.Add("mbr"), token=self.token)
      self.assertEqual(fd.Read(4096), self.mbr)
def testGetMBR ( self ) : flow_id = flow_test_lib . TestFlowHelper ( transfer . GetMBR . __name__ , ClientMock ( self . mbr ) , token = self . token , client_id = self . client_id ) results = flow_test_lib . GetFlowResults ( self . client_id , flow_id ) self . assertLen ( results , 1 ) self . assertEqual ( results [ 0 ] , self . mbr ) if data_store . AFF4Enabled ( ) : fd = aff4 . FACTORY . Open ( self . client_id . Add ( "mbr" ) , token = self . token ) self . assertEqual ( fd . Read ( 4096 ) , self . mbr )
Test that the GetMBR flow works.
Test that the GetMBR flow works .
"""Test that the GetMBR flow works."""
self