Ejemplo n.º 1
0
    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")
        )
Ejemplo n.º 2
0
 def test_path_not_found(self):
     self.assertThat(_base_provider._get_tzdata("timezone-not-found"),
                     Equals("Etc/UTC"))