|
@@ -618,7 +618,7 @@ class TestX25519(unittest.TestCase): |
|
|
|
|
|
|
|
|
rb = lora_comms.x25519_wrap(bpubkey, bprivkey, apubkey, 1) |
|
|
rb = lora_comms.x25519_wrap(bpubkey, bprivkey, apubkey, 1) |
|
|
|
|
|
|
|
|
self.assertEquals(ra, rb) |
|
|
|
|
|
|
|
|
self.assertEqual(ra, rb) |
|
|
|
|
|
|
|
|
class TestLORANode(unittest.IsolatedAsyncioTestCase): |
|
|
class TestLORANode(unittest.IsolatedAsyncioTestCase): |
|
|
shared_domain = b'com.funkthat.lora.irrigation.shared.v0.0.1' |
|
|
shared_domain = b'com.funkthat.lora.irrigation.shared.v0.0.1' |
|
@@ -629,7 +629,7 @@ class TestLORANode(unittest.IsolatedAsyncioTestCase): |
|
|
l = LORANode(None) |
|
|
l = LORANode(None) |
|
|
|
|
|
|
|
|
@timeout(2) |
|
|
@timeout(2) |
|
|
async def test_lora(self): |
|
|
|
|
|
|
|
|
async def test_lora_shared(self): |
|
|
_self = self |
|
|
_self = self |
|
|
shared_key = os.urandom(32) |
|
|
shared_key = os.urandom(32) |
|
|
|
|
|
|
|
|