def test_empty_list_gets_passed_identially(self): self.assertEqual(_canonicalize_to_list([]), [])
def test_filled_list_gets_passed_identially(self): self.assertEqual(_canonicalize_to_list(['l', 'bar', 0, None]), ['l', 'bar', 0, None])
def test_string_gets_kept(self): self.assertEqual(_canonicalize_to_list('teststring'), ['teststring'])
def test_false_gets_kept(self): self.assertEqual(_canonicalize_to_list(False), [False])
def test_none_gives_empty_list(self): self.assertEqual(_canonicalize_to_list(None), [])
def test_zero_gets_kept(self): self.assertEqual(_canonicalize_to_list(0), [0])
def test_canonicalization(value, expected): assert _canonicalize_to_list(value) == expected
def test_empty_string_gives_empty_list(self): self.assertEqual(_canonicalize_to_list(''), [])
def test_empty_list_gets_passed_identially(self): self.assertEqual(_canonicalize_to_list([]), [])
def test_filled_list_gets_passed_identially(self): self.assertEqual(_canonicalize_to_list(['l', 'bar', 0, None]), ['l', 'bar', 0, None])
def test_false_gets_kept(self): self.assertEqual(_canonicalize_to_list(False), [False])
def test_string_gets_kept(self): self.assertEqual(_canonicalize_to_list('teststring'), ['teststring'])
def test_zero_gets_kept(self): self.assertEqual(_canonicalize_to_list(0), [0])
def test_none_gives_empty_list(self): self.assertEqual(_canonicalize_to_list(None), [])
def test_empty_string_gives_empty_list(self): self.assertEqual(_canonicalize_to_list(''), [])