コード例 #1
0
ファイル: execution_tests.py プロジェクト: Vanuan/pybuilder
    def test_should_return_list_of_strings_when_function_given(self):
        def spam(): pass

        self.assertEquals(["spam"], as_task_name_list(spam))
コード例 #2
0
ファイル: execution_tests.py プロジェクト: Vanuan/pybuilder
    def test_should_return_list_of_strings_when_list_of_functions_given(self):
        def spam(): pass

        def eggs(): pass

        self.assertEquals(["spam", "eggs"], as_task_name_list([spam, eggs]))
コード例 #3
0
ファイル: execution_tests.py プロジェクト: Vanuan/pybuilder
 def test_should_return_list_of_strings_when_list_of_strings_given(self):
     self.assertEquals(["spam", "eggs"], as_task_name_list(["spam", "eggs"]))