aboutsummaryrefslogtreecommitdiff
path: root/python/formatter_TEST.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/formatter_TEST.py')
-rwxr-xr-xpython/formatter_TEST.py50
1 files changed, 49 insertions, 1 deletions
diff --git a/python/formatter_TEST.py b/python/formatter_TEST.py
index 47569493e..6833fb3c8 100755
--- a/python/formatter_TEST.py
+++ b/python/formatter_TEST.py
@@ -25,7 +25,43 @@ import unittest
Log.instance.log_level = LogLevel.WARNING
-class TestCase_01_Formatters_suclassing(unittest.TestCase):
+class TestCase_01_StringifyFormatter(unittest.TestCase):
+ def test_01_create(self):
+ StringifyFormatter()
+
+ def test_02_passing_to_cpp(self):
+ f = StringifyFormatter()
+
+ test_formatter_string(f)
+ test_formmater_keyword_name(f)
+ test_formatter_use_flag_name(f)
+ test_formatter_iuse_flag(f)
+ test_formatter_license_spec_tree(f)
+ test_formatter_provide_spec_tree(f)
+ test_formatter_dependency_spec_tree(f)
+ test_formatter_restrict_spec_tree(f)
+ test_formatter_simple_uri_spec_tree(f)
+ test_formatter_fetchable_uri_spec_tree(f)
+
+class TestCase_02_PythonFormatter(unittest.TestCase):
+ def test_01_create(self):
+ PythonFormatter()
+
+ def test_02_passing_to_cpp(self):
+ f = PythonFormatter()
+
+ test_formatter_string(f)
+ test_formmater_keyword_name(f)
+ test_formatter_use_flag_name(f)
+ test_formatter_iuse_flag(f)
+ test_formatter_license_spec_tree(f)
+ test_formatter_provide_spec_tree(f)
+ test_formatter_dependency_spec_tree(f)
+ test_formatter_restrict_spec_tree(f)
+ test_formatter_simple_uri_spec_tree(f)
+ test_formatter_fetchable_uri_spec_tree(f)
+
+class TestCase_03_Formatters_suclassing(unittest.TestCase):
def test_python_can_formats(self):
class TestCanFormatPlain(CanFormatPlainTextDepSpec):
@@ -182,5 +218,17 @@ class TestCase_01_Formatters_suclassing(unittest.TestCase):
test_package_roles(f)
test_can_space(f)
+ test_formatter_string(f)
+ test_formmater_keyword_name(f)
+ test_formatter_use_flag_name(f)
+ test_formatter_iuse_flag(f)
+ test_formatter_license_spec_tree(f)
+ test_formatter_provide_spec_tree(f)
+ test_formatter_dependency_spec_tree(f)
+ test_formatter_restrict_spec_tree(f)
+ test_formatter_simple_uri_spec_tree(f)
+ test_formatter_fetchable_uri_spec_tree(f)
+
+
if __name__ == "__main__":
unittest.main()