Пример #1
0
    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]))
Пример #2
0
    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
    def test_should_return_list_of_strings_when_function_given(self):
        def spam():
            pass

        self.assertEquals(["spam"], as_task_name_list(spam))
Пример #4
0
 def test_should_return_list_of_strings_when_list_of_strings_given(self):
     self.assertEquals(["spam", "eggs"], as_task_name_list(["spam",
                                                            "eggs"]))
Пример #5
0
    def test_should_return_list_of_strings_when_function_given(self):
        def spam():
            pass

        self.assertEquals(["spam"], as_task_name_list(spam))
Пример #6
0
 def test_should_return_list_of_strings_when_list_of_strings_given(self):
     self.assertEquals(
         ["spam", "eggs"], as_task_name_list(["spam", "eggs"]))
Пример #7
0
 def test_should_return_list_of_strings_when_string_given(self):
     self.assertEqual(["spam"], as_task_name_list("spam"))
Пример #8
0
 def test_should_return_list_of_strings_when_string_given(self):
     self.assertEqual(["spam"], as_task_name_list("spam"))