def test_get_board_config_usr_loc(self):
        """gets the board configuration dictionary given the board name"""
        boardname = "test_board"
        loc = os.path.join(os.path.dirname(__file__), os.path.pardir, "fake")

        board_dict = utils.get_board_config(boardname, [loc], debug=False)
        self.assertEqual(board_dict["board_name"], "Test Board")
    def test_get_board_config_usr_loc(self):
        """gets the board configuration dictionary given the board name"""
        boardname = "test_board"
        loc = os.path.join(os.path.dirname(__file__),
                           os.path.pardir,
                           "fake")

        board_dict = utils.get_board_config(boardname, [loc], debug = False)
        self.assertEqual(board_dict["board_name"], "Test Board")
 def test_get_board_config(self):
     """gets the board configuration dictionary given the board name"""
     boardname = "dionysus"
     board_dict = utils.get_board_config(boardname)
     self.assertEqual(board_dict["board_name"], "Dionysus")
Exemple #4
0
 def get_board_dict(self):
     board_name = self.model.get_board_name()
     if board_name is "undefined":
         raise DesignControlError("Board is not defined")
     return utils.get_board_config(board_name)
 def test_get_board_config(self):
     """gets the board configuration dictionary given the board name"""
     boardname = "dionysus"
     board_dict = utils.get_board_config(boardname)
     self.assertEqual(board_dict["board_name"], "Dionysus")