def setUp(self):
    _parser = OptionParser()
    _parser.add_option('-d', '--def', dest='definitions',
                      help='definitions directory', default='../def')
    (FLAGS, args) = _parser.parse_args()
    self.defs = naming.Naming(FLAGS.definitions)
Call before every test case
dataset/ETHPy150Open google/capirca/tests/nsxv_unittest.py/TermTest.setUp