<gh_stars>10-100
import medic
from maya import OpenMaya
import re


class Namespace(medic.PyTester):
    ReNS = re.compile("[:]")
    def __init__(self):
        super(Namespace, self).__init__()

    def Name(self):
        return "Namespace"

    def Description(self):
        return "Node(s) has a namespace"

    def Match(self, node):
        return True

    def test(self, node):
        if node.dg().isFromReferencedFile():
            return None

        if Namespace.ReNS.search(node.name()):
            return medic.PyReport(node)

        return None


def Create():
    return Namespace()
