def METHOD_NAME(self):
    section = self.section_3()
    section['scanningMode'] = 0b00000000
    metadata = empty_metadata()
    with warnings.catch_warnings(record=True) as warn:
        grid_definition_template_12(section, metadata)
    self.assertEqual(len(warn), 1)
    message = "Y definition inconsistent: scanningMode"
    self.assertRegex(str(warn[0].message), message)
    expected = self.expected(0, 1)
    self.assertEqual(metadata, expected)