import unittest

from .node_config import *

class NodeConfigTests(unittest.TestCase):
    def test_from_toml(self) -> None:
        t = """
        [node]
        clock_id = "123"
        display_name = "<NAME>"
        """
        nc = NodeConfig.from_toml(t)
        self.assertEqual(
            NodeConfig(123, "my node"),
            nc
        )

import unittest

from .node_config import *

class NodeConfigTests(unittest.TestCase):
    def test_from_toml(self) -> None:
        t = """
        [node]
        clock_id = "123"
        display_name = "<NAME>"
        """
        nc = NodeConfig.from_toml(t)
        self.assertEqual(
            NodeConfig(123, "my node"),
            nc
        )

[node]         clock_id = "123"         display_name = "<NAME>"