Added test cases for uploading multiple images

Resolves openbmc/openbmc-test-automation#873

Change-Id: I2ac5b9acd6955c5d600099e39771f1feeeddc2c9
Signed-off-by: Charles Paul Hofer <Charles.Hofer@ibm.com>
diff --git a/lib/code_update_utils.robot b/lib/code_update_utils.robot
index a73a6a9..10e2171 100644
--- a/lib/code_update_utils.robot
+++ b/lib/code_update_utils.robot
@@ -117,6 +117,19 @@
     Should Be Equal As Strings  &{software_state}[Activation]  ${ACTIVE}
 
 
+Activate Image And Verify No Duplicate Priorities
+    [Documentation]  Upload an image, and then check that no images have the
+    ...              same priority.
+    [Arguments]  ${image_file_path}  ${image_purpose}
+
+    # Description of argument(s):
+    # image_file_path  The path to the image to upload.
+    # image_purpose    The purpose in the image's MANIFEST file.
+
+    Upload And Activate Image  ${image_file_path}
+    Verify No Duplicate Image Priorities  ${image_purpose}
+
+
 Delete Software Object
     [Documentation]  Deletes an image from the BMC.
     [Arguments]  ${software_object}