Esempio n. 1
0
 def test_correct_addition(self):
     role = {
         "name": "Mtsiri",
         "type": "classic",
         "book": "http://pulse-rest-testing.herokuapp.com/books/6631",
         "level": 1212
     }
     add_item_id(role, 22)
     self.assertEqual(role["id"], 22)
Esempio n. 2
0
 def test_correct_id_update(self):
     book = {"title": "Mytitle", "author": "My_author", "id": 100}
     add_item_id(book, 1)
     self.assertEqual(book["id"], 1)
Esempio n. 3
0
 def test_correct_addition(self):
     book = {"title": "Mytitle", "author": "My_author"}
     add_item_id(book, 22)
     self.assertEqual(book["id"], 22)
 def test_correct_addition(self, param_test):
     (input, expected_output) = param_test
     add_item_id(input, expected_output)
     assert input["id"] == expected_output