In the UK, when a teacher does something like that and calls you up on eating in class. You simply have to state that you could not eat it beforehand or after, any disciplinary action taken by the teacher at that point can be shown as infringing on your rights.
So, yeah.
That's awesome. c:

