class GeneralizedSuffixTreeTestCase(TestCase):
    def setUp(self):
        super(GeneralizedSuffixTreeTestCase, self).setUp()
        self.app = SuffixTreeApplicationWithPythonObjects()

    def tearDown(self):
        self.app.close()
        super(GeneralizedSuffixTreeTestCase, self).tearDown()

    def add_string_to_suffix_tree(self, string, string_id, suffix_tree):
        print("Adding string to suffix tree: {}".format(repr(string[:100])))
        started = datetime.datetime.now()
        suffix_tree.add_string(string, string_id=string_id)
        print(" - added string in: {}".format(datetime.datetime.now() -
                                              started))
class GeneralizedSuffixTreeTestCase(TestCase):

    def setUp(self):
        super(GeneralizedSuffixTreeTestCase, self).setUp()
        self.app = SuffixTreeApplicationWithPythonObjects()

    def tearDown(self):
        self.app.close()
        super(GeneralizedSuffixTreeTestCase, self).tearDown()

    def add_string_to_suffix_tree(self, string, string_id, suffix_tree):
        print("Adding string to suffix tree: {}".format(repr(string[:100])))
        started = datetime.datetime.now()
        suffix_tree.add_string(string, string_id=string_id)
        print(" - added string in: {}".format(datetime.datetime.now() - started))
 def setUp(self):
     super(GeneralizedSuffixTreeTestCase, self).setUp()
     self.app = SuffixTreeApplicationWithPythonObjects()
 def setUp(self):
     super(GeneralizedSuffixTreeTestCase, self).setUp()
     self.app = SuffixTreeApplicationWithPythonObjects()