def check_scm_installed(self): dists = set([di.key for di in pip.get_installed_distributions()]) assert 'scm' in dists