def test_list_flavors(self, mock_list): sot = CloudCDNClient(mock.MagicMock()) sot.list_flavors() mock_list.assert_called_once_with()