def test_remove_drink_using_copy(self): """ Test removing a drink from the database using a copy of the drink. """ drink = self._create_random_drink() self.assertNotIn(drink, self.db, "New drink should be unique") self.db.add(drink) self.assertIn(drink, self.db, "New drink should be added") copy = Drink() copy.id = drink.id self.db.remove(copy) self.assertNotIn(drink, self.db, "Drink should no longer be present")