Exemplo n.º 1
0
    def test_create_class(self):
        """ create the class """
        current_table = iv.IndexerValues()
        self.assertTrue(current_table is not None)

        # check the date format
        self.assertTrue(current_table.date_format == "%Y-%m-%d")
Exemplo n.º 2
0
    def setUp(self):
        """
        Setup environment for the Ward tests

        :return:
        """
        unittest.TestCase.setUp(self)
        self.test_table = iv.IndexerValues()
Exemplo n.º 3
0
    def setUp(self):
        """
        Setup environment for the Ward tests

        :return:
        """
        unittest.TestCase.setUp(self)
        fn = dummy_locations()
        fn = fn.joinpath('dummy_table_201512.csv')
        self.my_data = iv.IndexerValues()
        self.my_data.read_table_name(fn)