original_docstring: Test that the GetMBR flow works.
docstring: Test that the GetMBR flow works.
docstring_tokens: Test that the GetMBR flow works .
code: def testGetMBR(self):
      """Test that the GetMBR flow works."""
  
      mbr = ("123456789" * 1000)[:4096]
  
      class ClientMock(object):
  
        def ReadBuffer(self, args):
          _ = args
          return [
              rdfvalue.BufferReference(
                  data=mbr, offset=0, length=len(mbr))]
  
      for _ in test_lib.TestFlowHelper("GetMBR", ClientMock(), token=self.token,
                                       client_id=self.client_id):
        pass
  
      fd = aff4.FACTORY.Open(self.client_id.Add("mbr"), token=self.token)
      self.assertEqual(fd.Read(4096), mbr)
code_tokens: def testGetMBR ( self ) : mbr = ( "123456789" * 1000 ) [ : 4096 ] class ClientMock ( object ) : def ReadBuffer ( self , args ) : _ = args return [ rdfvalue . BufferReference ( data = mbr , offset = 0 , length = len ( mbr ) ) ] for _ in test_lib . TestFlowHelper ( "GetMBR" , ClientMock ( ) , token = self . token , client_id = self . client_id ) : pass fd = aff4 . FACTORY . Open ( self . client_id . Add ( "mbr" ) , token = self . token ) self . assertEqual ( fd . Read ( 4096 ) , mbr )
short_docstring: Test that the GetMBR flow works.
short_docstring_tokens: Test that the GetMBR flow works .
comment: """Test that the GetMBR flow works."""