def _data_changed(self, name, old, new): for k,v in iteritems(new): assert mime_pat.match(k) nt.assert_is_instance(v, string_types) # shell replies