def test_version_status(): addon = Addon() version = Version() version.all_files = [File(status=amo.STATUS_PUBLIC), File(status=amo.STATUS_AWAITING_REVIEW)] assert u'Approved,Awaiting Review' == ( helpers.version_status(addon, version)) version.all_files = [File(status=amo.STATUS_AWAITING_REVIEW)] assert u'Awaiting Review' == helpers.version_status(addon, version)
def test_version_status(): addon = Addon() version = Version() version.all_files = [File(status=amo.STATUS_PUBLIC), File(status=amo.STATUS_UNREVIEWED)] assert u'Fully Reviewed,Awaiting Review' == ( helpers.version_status(addon, version)) version.all_files = [File(status=amo.STATUS_UNREVIEWED)] assert u'Awaiting Review' == helpers.version_status(addon, version)