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]))
def test_should_return_list_of_strings_when_function_given(self): def spam(): pass self.assertEquals(["spam"], as_task_name_list(spam))
def test_should_return_list_of_strings_when_list_of_strings_given(self): self.assertEquals(["spam", "eggs"], as_task_name_list(["spam", "eggs"]))
def test_should_return_list_of_strings_when_list_of_strings_given(self): self.assertEquals( ["spam", "eggs"], as_task_name_list(["spam", "eggs"]))
def test_should_return_list_of_strings_when_string_given(self): self.assertEqual(["spam"], as_task_name_list("spam"))