<commit_before>import sys
if '../' not in sys.path:
    sys.path.append('../')
import unittest
import os

class TestDependencies(unittest.TestCase):

    def test_ssh_bin(self):
        """Is ssh in /usr/bin"""
        ssh = os.path.exists('/usr/bin/ssh')
        self.assertTrue(ssh)

    def test_hg_bin(self):
        """Is Mercurial in /usr/bin"""
        hg = os.path.exists('/usr/bin/hg')
        self.assertTrue(hg)

if __name__ == '__main__':
    unittest.main()<commit_msg>fixing dependencies testing<commit_after>import unittest

class TestDependencies(unittest.TestCase):


    def test_hg(self):
        try:
            import mercurial 
            imported = True
        except:
            imported = False
        self.assertTrue(imported)

    def test_hg_commands(self):
        try:
            from mercurial import commands
            imported = True
        except:
            imported = False
        self.assertTrue(imported)

    def test_hg_ui(self):
        try:
            from mercurial import ui
            imported = True
        except:
            imported = False
        self.assertTrue(imported)

    def test_hg_hg(self):
        try:
            from mercurial import hg
            imported = True
        except:
            imported = False
        self.assertTrue(imported)


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.09781021897810219, 'fraction_numerical': 0.0, 'mean_word_length': 1.8742138364779874, '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': '7028543', 'n_tokens_mistral': 412, 'n_tokens_neox': 400, 'n_words': 94}