def test_and_join(self): self.assertEqual( 'Korea, Japan, China, and Taiwan', sass.and_join(['Korea', 'Japan', 'China', 'Taiwan']) ) self.assertEqual( 'Korea, and Japan', sass.and_join(['Korea', 'Japan']) ) assert 'Korea' == sass.and_join(['Korea']) assert '' == sass.and_join([])