'Dump Flash Image.'

def testDumpFlash(self):

    client_mock = DumpFlashImageMock()
    for _ in flow_test_lib.TestFlowHelper(hardware.DumpFlashImage.__name__, client_mock, client_id=self.client_id, token=self.token):
        pass
    fd = aff4.FACTORY.Open(self.client_id.Add('spiflash'), token=self.token)
    self.assertEqual(fd.Read('10'), ('\xff' * 10))
