def test_path_found(self): with open("timezone", "w") as timezone_file: print("America/Argentina/Cordoba", file=timezone_file) self.assertThat( _base_provider._get_tzdata("timezone"), Equals("America/Argentina/Cordoba") )
def test_path_not_found(self): self.assertThat(_base_provider._get_tzdata("timezone-not-found"), Equals("Etc/UTC"))