Bug 1030972 - Import tasks from Bugzilla

@bobsilverberg @Osmose r?
I don't think it's ever ok to put `assert` into a method like this. What happens if the assert fails? Maybe these asserts are left over from development and testing? If not, you need to do something different to check conditions and deal with the results. This goes for all the asserts in this class.