<commit_before>import unittest2 as unittest

from testcases.base import BaseTestCaseMixin


class GetTreeTestCase(BaseTestCaseMixin, unittest.TestCase):

    def test_none_ret(self):
        self.assertEqual(self.service.get_tree(0), None)

    def test_notset(self):
        res = self.service.get_tree(1)
        self.assertEqual(res.value, 1)
        self.assertFalse(hasattr(res, 'left'))
        self.assertFalse(hasattr(res, 'right'))

    def test_none(self):
        res = self.service.get_tree(2)
        self.assertEqual(res.value, 2)
        self.assertEqual(res.left, None)
        self.assertEqual(res.right, None)<commit_msg>fixed one suds integration test<commit_after>import unittest2 as unittest

from testcases.base import BaseTestCaseMixin


class GetTreeTestCase(BaseTestCaseMixin, unittest.TestCase):

    def test_none_ret(self):
        self.assertEqual(self.service.get_tree(0), None)

    def test_notset(self):
        res = self.service.get_tree(1)
        self.assertEqual(res.value, 1)
        self.assertEqual(res.left, None)
        self.assertEqual(res.right, None)

    def test_none(self):
        res = self.service.get_tree(2)
        self.assertEqual(res.value, 2)
        self.assertEqual(res.left, None)
        self.assertEqual(res.right, None)
{'fraction_non_alphanumeric': 0.10747663551401869, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 3.3265993265993266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7049628', 'n_tokens_mistral': 408, 'n_tokens_neox': 394, 'n_words': 73}