Add unit test for structure and command parsing and generation

This tests the parser and generator for the TPM structures and commands
by comparing input and output for a small case.

BUG=chromium-os:19488
TEST=ran "ttl-generator.py test"

Change-Id: Ie4edad43ce95af4c04d751164ba98ac5837d4fa5
8 files changed