Current behaviour
Currently CosmeticChangesToolkit.commonsfiledesc method is available for commons:commons site only
Expected behaviour
The mehtod should be available for other sites of the commons Family too like commons:test or commons:beta
Way to go
Instead using the sitename method in commonsfiledesc
if self.site.sitename() != u'commons:commons' ...
use the family name instead: self.site.family.name which is commons.
See also