Unify format and audage_frame into one module & interface.
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
"""
|
||||
AuDaGe format tests
|
||||
|
||||
name: test_format.py
|
||||
by: Josh Lucas
|
||||
date: 2026-09-14
|
||||
|
||||
desc: Unit tests for the AuDaGe format module.
|
||||
"""
|
||||
|
||||
import unittest
|
||||
@@ -1,24 +1,24 @@
|
||||
import unittest
|
||||
|
||||
from AuDaGe.audage_frame import AuDaGeFrame
|
||||
from AuDaGe.frame import AuDaGeFrame
|
||||
|
||||
|
||||
class TestAuDaGeFrame(unittest.TestCase):
|
||||
def test_init(self):
|
||||
valid_adf = {
|
||||
valid_af = {
|
||||
"name": ["a", "b", "c"],
|
||||
"type": ["d", "e", "f"],
|
||||
"address": [1, 2, 3],
|
||||
"comment": ["g", "h", "i"],
|
||||
}
|
||||
self.assertTrue(AuDaGeFrame(valid_adf).is_valid())
|
||||
invalid_adf = {
|
||||
self.assertTrue(AuDaGeFrame(valid_af).is_valid())
|
||||
invalid_af = {
|
||||
"name": ["a", "b", "c"],
|
||||
# "type": ["d", "e", "f"],
|
||||
"address": [1, 2, 3],
|
||||
"comment": ["g", "h", "i"],
|
||||
}
|
||||
self.assertRaises(ValueError, AuDaGeFrame, invalid_adf)
|
||||
self.assertRaises(ValueError, AuDaGeFrame, invalid_af)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
Reference in New Issue
Block a user