I am building a binary file importer using Python. The specific file structure is defined in a specification. This looks like:
- Map Block
String, Short Integer, Long Integer, String, Short Integer, Long Integer...
String, String, Long Integer, String, Short Integer, String, Long Integer, Long Integer....
I have proved the concept of collecting and decoding the binary data and I can access each block of data individually by collecting the Map Block first.
However I can't figure out the best way to Test it. The current tests I have are: test_get_string test_get_short test_get_long
Can you suggest what suite of tests I might build next? Would I be best testing with an actual file or create long binary strings to test with?