4 Commits

Author SHA1 Message Date
Darragh Bailey
4573b3a25d Refactor base test classes inheritance for reuse
Refactor base test class inheritance to allow for BaseTest class to be
reused without needing to also import the TestCase class everywhere in
order to avoid having the common test function executed on base classes.

This makes it easier to build base testing classes and then simplifies
the subclassing of these for actual tests.

Change-Id: I89809e8082469f814f245db4a9ab7658aac8a405
2016-09-14 14:58:57 +01:00
Kien Ha
9c42d559d6 Add valid_dict parameter to convert xml
valid_dict provides a way to set options through their key and value.
This allows users to set options using more conventional naming
schemes/values but the resulting XML will use the corresponding value
from the dict for that key.

Change-Id: I6574a5f33eecddb9b7927841f08600f3977f0ca6
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-07-25 12:04:17 -04:00
Kien Ha
e237d7eb74 Add valid set of options parameters to convert_xml
Valid options provides a way to check if the value the user input is
from a list of available options.

Change-Id: I22409602fb526a83c0525772d68da1dbd28dd11b
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-07-07 15:04:17 -04:00
Kien Ha
5fe547b0b6
Add helper function to convert xml
Change-Id: I435008aab406c9086d634781c03bb7cf5bc2acba
Signed-off-by: Kien Ha <kienha9922@gmail.com>
2016-02-25 16:04:34 -05:00