tests: add tests for config and update tests.

This commit is contained in:
UpstreamData
2023-12-18 14:00:40 -07:00
parent b045abe76e
commit eb9b29aca1
4 changed files with 326 additions and 172 deletions

View File

@@ -44,8 +44,8 @@ class NetworkTest(unittest.TestCase):
ipaddress.IPv4Address("192.168.1.60"),
]
self.assertTrue(net_1 == correct_net)
self.assertTrue(net_2 == correct_net)
self.assertEqual(net_1, correct_net)
self.assertEqual(net_2, correct_net)
def test_net(self):
net_1_str = "192.168.1.0"
@@ -64,8 +64,8 @@ class NetworkTest(unittest.TestCase):
ipaddress.IPv4Address("192.168.1.6"),
]
self.assertTrue(net_1 == correct_net)
self.assertTrue(net_2 == correct_net)
self.assertEqual(net_1, correct_net)
self.assertEqual(net_2, correct_net)
def test_net_defaults(self):
net = MinerNetwork.from_subnet("192.168.1.1/24")