Secureboot test cases:

Added:
     -  Test to verify TPMPolicy Enabled and Disabled.

Resolves openbmc/openbmc-test-automation#1312

Change-Id: I1c2562bb4bc9bb8910d393fdc27ea6489549dec8
Signed-off-by: Sweta Potthuri <spotthur@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index f77f057..e550491 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1511,3 +1511,16 @@
     ...  xyz.openbmc_project.Led.Physical.Action.${expected_state}
     ...  msg=Unexpected LED state.
 
+
+Verify The Attribute
+    [Arguments]  ${uri}  ${attribute_name}  ${attribute_value}
+
+    # Description of argument(s):
+    # uri              URI path
+    #                  (e.g. "/xyz/openbmc_project/control/host0/TPMEnable").
+    # attribute_name   Name of attribute to be verified (e.g. "TPMEnable").
+    # attribute_value  The expected value of attribute (e.g. "1", "0", etc.)
+
+    ${output}=  Read Attribute  ${uri}  ${attribute_name}
+    Should Be Equal  ${attribute_value}  ${output}
+    ...  msg=Attribute "${attribute_name} does not have the expected value.