コード例 #1
0
ファイル: detection_tests.py プロジェクト: amrx101/committer
    def test_should_find_subversion_vcs_client(self):
        actual_vcs_clients = detection._list_available_vcs_clients()

        self.assertEqual('Subversion', actual_vcs_clients[2].name)
コード例 #2
0
ファイル: detection_tests.py プロジェクト: amrx101/committer
    def test_should_find_mercurial_vcs_client(self):
        actual_vcs_clients = detection._list_available_vcs_clients()

        self.assertEqual('Mercurial', actual_vcs_clients[1].name)
コード例 #3
0
ファイル: detection_tests.py プロジェクト: amrx101/committer
    def test_should_return_three_vcs_clients(self):

        actual_vcs_clients = detection._list_available_vcs_clients()
        actual_count_of_repositories = len(actual_vcs_clients)

        self.assertEqual(3, actual_count_of_repositories)
コード例 #4
0
ファイル: detection_tests.py プロジェクト: amrx101/committer
    def test_should_find_git_vcs_client(self):
        actual_vcs_clients = detection._list_available_vcs_clients()

        self.assertEqual('Git', actual_vcs_clients[0].name)
コード例 #5
0
    def test_should_find_mercurial_vcs_client(self):
        actual_vcs_clients = detection._list_available_vcs_clients()
        actual_count_of_repositories = len(actual_vcs_clients)

        self.assertEqual(3, actual_count_of_repositories)