def swap_case(self): """Swap case in a string Returns: Chepy: The Chepy object. Examples: >>> Chepy("SoMe TeXt").swap_case().o "sOmE tExT" """ self.state = pydash.swap_case(self._convert_to_str()) return self
def test_swap_case(case, expected): assert _.swap_case(case) == expected