@bobsilverberg 

Actually it's your code:
https://github.com/mozilla/moztrap-tests/pull/128/files

I am a bit afraid to rewrite your's bits of code :)