def list_readable(self,listed): """Generates a string of items from a list, separated by commas.""" novo = readable.list(listed) return novo
def test_list(self): self.assertEqual(readable.list([]), "") self.assertEqual(readable.list(["one", "two", "three"]), "one, two, three")
def list_readable(self, listed): """Generates a string of items from a list, separated by commas.""" novo = readable.list(listed) return novo
def test_list(self): self.assertEqual(readable.list([]), "") self.assertEqual(readable.list(["one","two", "three"]), "one, two, three")