def test_out_of_range_input(self, mock_input): """Test out of range user input for searching a book result.""" actual = books.validate_and_obtain_shelf_destination() expected = "5" self.assertEqual(expected, actual)
def test_invalid_zero_input(self, mock_input): """Test user input of zero for searching a book result.""" actual = books.validate_and_obtain_shelf_destination() expected = "5" self.assertEqual(expected, actual)
def test_invalid_book_to_move_input(self, mock_input): """Test invalid alphanumeric user input for searching a book result.""" actual = books.validate_and_obtain_shelf_destination() expected = "5" self.assertEqual(expected, actual)
def test_obtain_book_to_move_with_integer_input(self, mock_input): """Test expected user input to select a book result.""" actual = books.validate_and_obtain_shelf_destination() expected = "3" self.assertEqual(expected, actual)
def test_no_shelf_entered(self, mock_input): """Test no user input.""" actual = books.validate_and_obtain_shelf_destination() expected = "4" self.assertEqual(expected, actual)
def test_validate_and_obtain_named_shelf_destination(self, mock_input): """Test expected user input for searching a shelf that has a name.""" actual = books.validate_and_obtain_shelf_destination() expected = "Reading" self.assertEqual(expected, actual)
def test_validate_and_obtain_integer_shelf_destination(self, mock_input): """Test expected user input for searching a shelf that is an integer.""" actual = books.validate_and_obtain_shelf_destination() expected = "3" self.assertEqual(expected, actual)