def test_do_member_delete(self): args = self._make_args({"image_id": "IMG-01", "member_id": "MEM-01"}) with mock.patch.object(self.gc.image_members, "delete") as mock_delete: test_shell.do_member_delete(self.gc, args) mock_delete.assert_called_once_with("IMG-01", "MEM-01")
def test_do_member_delete(self): args = self._make_args({'image_id': 'IMG-01', 'member_id': 'MEM-01'}) with mock.patch.object(self.gc.image_members, 'delete') as mock_delete: test_shell.do_member_delete(self.gc, args) mock_delete.assert_called_once_with('IMG-01', 'MEM-01')
def test_do_member_delete(self): args = self._make_args({'image_id': 'IMG-01', 'member_id': 'MEM-01'}) with mock.patch.object(self.gc.image_members, 'delete') as mock_delete: test_shell.do_member_delete(self.gc, args) mock_delete.assert_called_once_with('IMG-01', 'MEM-01')