'Test the find action size limits.'

def testFindSizeLimits(self):

    request = rdf_client.FindSpec(min_file_size=4, max_file_size=15, cross_devs=True)
    request.pathspec.Append(path='/mock2/', pathtype=rdf_paths.PathSpec.PathType.OS)
    request.iterator.number = 200
    results = self.RunAction(searching.Find, request)
    all_files = []
    for result in results:
        if isinstance(result, rdf_client.FindSpec):
            all_files.append(result.hit.pathspec.Basename())
    self.assertEqual(len(all_files), 5)
    for filename in all_files:
        self.assertTrue((4 <= len(filename) <= 15))
