# Path: ice/model.py
# ROM = collections.namedtuple('ROM', [
#   'name',
#   'path',
#   'console',
# ])
# 
# Path: ice/steam_shortcut_synchronizer.py
# class SteamShortcutSynchronizer(object):
#   def __init__(self, config, managed_rom_archive):
#   def _guess_whether_shortcut_is_managed_by_ice(self, shortcut, consoles):
#     def shortcut_is_managed_by_console(console):
#   def shortcut_is_managed_by_ice(self, managed_ids, shortcut, consoles):
#   def unmanaged_shortcuts(self, managed_ids, shortcuts, consoles):
#   def removed_shortcuts(self, current_shortcuts, new_shortcuts):
#   def added_shortcuts(self, current_shortcuts, new_shortcuts):
#   def sync_roms_for_user(self, user, users_roms, consoles, dry_run=False):
# 
# Path: ice/roms.py
# ICE_FLAG_TAG = "~ManagedByIce"
# def roms_directory(config):
# def rom_shortcut_name(rom):
# def rom_to_shortcut(rom):


import unittest
from mockito import *
from pysteam import model as steam_model
from pysteam import shortcuts
from ice import model
from ice import steam_shortcut_synchronizer
from ice import roms
from testinfra import fixtures






class SteamShortcutSynchronizerTests(unittest.TestCase):

  def setUp(self):
    self.steam_fixture = fixtures.SteamFixture()
    self.user_fixture = fixtures.UserFixture(self.steam_fixture)

    self.mock_config  = mock()
    self.mock_archive = mock()
    self.synchronizer = steam_shortcut_synchronizer.SteamShortcutSynchronizer(self.mock_config, self.mock_archive)

    self.mock_logger = mock()

# Path: ice/model.py
# ROM = collections.namedtuple('ROM', [
#   'name',
#   'path',
#   'console',
# ])
# 
# Path: ice/steam_shortcut_synchronizer.py
# class SteamShortcutSynchronizer(object):
#   def __init__(self, config, managed_rom_archive):
#   def _guess_whether_shortcut_is_managed_by_ice(self, shortcut, consoles):
#     def shortcut_is_managed_by_console(console):
#   def shortcut_is_managed_by_ice(self, managed_ids, shortcut, consoles):
#   def unmanaged_shortcuts(self, managed_ids, shortcuts, consoles):
#   def removed_shortcuts(self, current_shortcuts, new_shortcuts):
#   def added_shortcuts(self, current_shortcuts, new_shortcuts):
#   def sync_roms_for_user(self, user, users_roms, consoles, dry_run=False):
# 
# Path: ice/roms.py
# ICE_FLAG_TAG = "~ManagedByIce"
# def roms_directory(config):
# def rom_shortcut_name(rom):
# def rom_to_shortcut(rom):


# Path: tests/steam_shortcut_synchronizer_tests.py
import unittest
from mockito import *
from pysteam import model as steam_model
from pysteam import shortcuts
from ice import model
from ice import steam_shortcut_synchronizer
from ice import roms
from testinfra import fixtures







class SteamShortcutSynchronizerTests(unittest.TestCase):

  def setUp(self):
    self.steam_fixture = fixtures.SteamFixture()
    self.user_fixture = fixtures.UserFixture(self.steam_fixture)

    self.mock_config  = mock()
    self.mock_archive = mock()
    self.synchronizer = steam_shortcut_synchronizer.SteamShortcutSynchronizer(self.mock_config, self.mock_archive)

    self.mock_logger = mock()

    steam_shortcut_synchronizer.logger = self.mock_logger