Beispiel #1
0
 def assertModule(self, module_name, filename):
     """
     The root directory for the module and the associated test file should
     be the same. If not, report an assertion failure.
     """
     mroot = U.bscr_root(sys.modules[module_name].__file__)
     troot = U.bscr_root()
     self.assertEqual(troot, mroot,
                      "Expected '%s', got '%s'" % (troot, mroot))
Beispiel #2
0
def bscr_roots(args):
    """roots - display bscr root and git repo location

    usage: bscr roots
    """
    c = U.cmdline([])
    (o, a) = c.parse(args)

    print("bscr root: %s" % util.bscr_root())
    print(" git root: %s" % util.git_root())
    print("in_bscr_repo: %s" % util.in_bscr_repo())
Beispiel #3
0
def bscr_roots(**kwa):
    """
    roots - display bscr root and git repo location

    usage: bscr roots
    """
    if kwa["d"]:
        pdb.set_trace()
    print("bscr root: %s" % util.bscr_root())
    print(" git root: %s" % util.git_root())
    print("in_bscr_repo: %s" % util.in_bscr_repo())