Beispiel #1
0
 def test_create_dictionary_from_keys_and_values_lists_fail(
         self, robot_call):
     mock_gui = Mock()
     GUILibrary.create_dictionary_from_keys_and_values_lists(
         mock_gui, [5], [6, 7])
     robot_call.assert_called_with(
         "The length of the keys and values lists is not the same: \nKeys Length: "
         + "1" + "\nValues Length: " + "2", "ERROR")
Beispiel #2
0
 def test_create_dictionary_from_keys_and_values_lists_simple(self):
     mock_gui = Mock()
     assert GUILibrary.create_dictionary_from_keys_and_values_lists(
         mock_gui, [5], [6]) == {
             5: 6
         }