Ejemplo n.º 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]))
Ejemplo n.º 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]))
Ejemplo n.º 3
0
    def test_should_return_list_of_strings_when_function_given(self):
        def spam():
            pass

        self.assertEquals(["spam"], as_task_name_list(spam))
Ejemplo n.º 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"]))
Ejemplo n.º 5
0
    def test_should_return_list_of_strings_when_function_given(self):
        def spam():
            pass

        self.assertEquals(["spam"], as_task_name_list(spam))
Ejemplo n.º 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"]))
Ejemplo n.º 7
0
 def test_should_return_list_of_strings_when_string_given(self):
     self.assertEqual(["spam"], as_task_name_list("spam"))
Ejemplo n.º 8
0
 def test_should_return_list_of_strings_when_string_given(self):
     self.assertEqual(["spam"], as_task_name_list("spam"))