def test_wrong_version(self): header = build_header(version=0x01) self.assertFalse(geopackage.is_valid(header)[0])
def test_out_of_bounds_envelope(self): flags = geopackage._build_flags(0, 5, 1) header = build_header(flags=flags) self.assertFalse(geopackage.is_valid(header)[0])
def test_no_magic_p(self): header = build_header(magic2=0x00) self.assertFalse(geopackage.is_valid(header)[0])