'Assert the *block* has the expected number of array expressions
in it.'

def _assert_array_exprs(self, block, expected_count):

    rewrite_count = len(list(self._get_array_exprs(block)))
    self.assertEqual(rewrite_count, expected_count)
