def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the tag plugin.
    """
    import bauble.connmgr as mod
    head, tail = os.path.split(mod.__file__)
    assert(not check_dupids(os.path.join(head, 'connmgr.glade')))
def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the tag plugin.
    """
    import bauble.connmgr as mod
    head, tail = os.path.split(mod.__file__)
    assert(not check_dupids(os.path.join(head, 'connmgr.glade')))
Esempio n. 3
0
def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the users plugin.
    """
    import bauble.plugins.users as mod
    import glob
    head, tail = os.path.split(mod.__file__)
    files = glob.glob(os.path.join(head, '*.glade'))
    for f in files:
        assert(not check_dupids(f))
Esempio n. 4
0
def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the tag plugin.
    """
    import bauble.plugins.tag as mod
    import glob
    head, tail = os.path.split(mod.__file__)
    files = glob.glob(os.path.join(head, '*.glade'))
    for f in files:
        assert (not check_dupids(f))
Esempio n. 5
0
 def test_duplicate_ids(self):
     """
     Test for duplicate ids for all .glade files in the bauble module
     """
     import bauble as mod
     import glob
     head, tail = os.path.split(mod.__file__)
     files = glob.glob(os.path.join(head, '*.glade'))
     for f in files:
         ids = check_dupids(f)
         self.assert_(ids == [], "%s has duplicate ids: %s" % (f, str(ids)))
 def test_duplicate_ids(self):
     """
     Test for duplicate ids for all .glade files in the bauble module
     """
     import bauble as mod
     import glob
     head, tail = os.path.split(mod.__file__)
     files = glob.glob(os.path.join(head, '*.glade'))
     for f in files:
         ids = check_dupids(f)
         self.assert_(ids == [], "%s has duplicate ids: %s" % (f, str(ids)))
Esempio n. 7
0
def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the gardens plugin.
    """
    import bauble.plugins.report as mod
    import glob
    head, tail = os.path.split(mod.__file__)
    files = []
    files.extend(glob.glob(os.path.join(head, '*.glade')))
    files = glob.glob(os.path.join(head, 'mako', '*.glade'))
    files = glob.glob(os.path.join(head, 'xsl', '*.glade'))
    for f in files:
        assert(not check_dupids(f))
Esempio n. 8
0
def test_duplicate_ids():
    """
    Test for duplicate ids for all .glade files in the gardens plugin.
    """
    import bauble.plugins.report as mod
    import glob
    head, tail = os.path.split(mod.__file__)
    files = []
    files.extend(glob.glob(os.path.join(head, '*.glade')))
    files = glob.glob(os.path.join(head, 'mako', '*.glade'))
    files = glob.glob(os.path.join(head, 'xsl', '*.glade'))
    for f in files:
        assert (not check_dupids(f))