Field mode enable check keyword.

This is a simple keyword which checks that "FieldModeEnabled" is
set. The reason for not directly using the 'Read Attribute' keyword
is to keep the code cleaner when used in multiple places in tests
such as code update and BMC reset use cases.

Change-Id: I559b5f8dff939a4111a56a18abb58211e0526961
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index 16836cc..34b4054 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -417,3 +417,9 @@
     OBMC Reboot (off)  quiet=${1}
     BMC Execute Command  [ -d "/usr/local/share" ]
 
+
+Field Mode Should Be Enabled
+    [Documentation]  Check that field mode is enabled.
+
+    ${value}=  Read Attribute  ${SOFTWARE_VERSION_URI}  FieldModeEnabled
+    Should Be True  ${value}  ${1}