# Path: ice/persistence/adapters/console_adapter.py
# class ConsoleBackedObjectAdapter(object):
#   def __init__(self, emulators):
#   def new(self, backing_store, identifier):
#   def verify(self, console):
#   def save_in_store(self, backing_store, identifier, console):
# 
# Path: ice/model.py
# ROM = collections.namedtuple('ROM', [
#   'name',
#   'path',
#   'console',
# ])


import unittest
from mockito import *
from nose_parameterized import parameterized
from ice.persistence.adapters import console_adapter
from ice import model
from testinfra import fixtures





class ConsoleAdapterTests(unittest.TestCase):

  def test_verify(self):
    emu = mock()
    adapter = console_adapter.ConsoleBackedObjectAdapter([])
    valid = model.Console("Nintendo", "NES", "", "", "", "", "", emu)
    self.assertTrue(adapter.verify(valid))


# Path: ice/persistence/adapters/console_adapter.py
# class ConsoleBackedObjectAdapter(object):
#   def __init__(self, emulators):
#   def new(self, backing_store, identifier):
#   def verify(self, console):
#   def save_in_store(self, backing_store, identifier, console):
# 
# Path: ice/model.py
# ROM = collections.namedtuple('ROM', [
#   'name',
#   'path',
#   'console',
# ])


# Path: tests/console_adapter_tests.py
import unittest
from mockito import *
from nose_parameterized import parameterized
from ice.persistence.adapters import console_adapter
from ice import model
from testinfra import fixtures






class ConsoleAdapterTests(unittest.TestCase):

  def test_verify(self):
    emu = mock()
    adapter = console_adapter.ConsoleBackedObjectAdapter([])
    valid = model.Console("Nintendo", "NES", "", "", "", "", "", emu)
    self.assertTrue(adapter.verify(valid))


    invalid = model.Console("Nintendo", "NES", "", "", "", "", "", None)