from zope.interface.verify import verifyClass, verifyObject
from ironman.hardware import HardwareManager, HardwareMap
from ironman.interfaces import IHardwareManager, IHardwareMap

def test_hardware_manager_create():
    obj = HardwareManager()
    assert obj is not None

def test_hardware_manager_class_iface():
    # Assure the class implements the declared interface
    assert verifyClass(IHardwareManager, HardwareManager)

def test_hardware_manager_instance_iface():
    # Assure instances of the class provide the declared interface
    assert verifyObject(IHardwareManager, HardwareManager())

def test_hardware_map_create():
    obj = HardwareMap()
    assert obj is not None

def test_hardware_map_class_iface():
    # Assure the class implements the declared interface
    assert verifyClass(IHardwareMap, HardwareMap)

def test_hardware_map_instance_iface():
    # Assure instances of the class provide the declared interface
    assert verifyObject(IHardwareMap, HardwareMap())

@@ -174,16 +174,47 @@
 areMap%0A%0A
+class TestHardwareManager:%0A    
 def test
@@ -233,32 +233,36 @@
 nager_create():%0A
+    
     obj = Hardwa
@@ -273,16 +273,20 @@
 nager()%0A
+    
     asse
@@ -297,32 +297,36 @@
 bj is not None%0A%0A
+    
 def test_hardwar
@@ -346,32 +346,36 @@
 ss_iface():%0A    
+   
+ 
 # Assure the cla
@@ -407,32 +407,36 @@
 d interface%0A    
+   
+ 
 assert verifyCla
@@ -474,16 +474,20 @@
 nager)%0A%0A
+    
 def test
@@ -514,32 +514,36 @@
 stance_iface():%0A
+    
     # Assure ins
@@ -589,32 +589,36 @@
 d interface%0A    
+  
+  
 assert verifyObj
@@ -659,16 +659,43 @@
 ger())%0A%0A
+class TestHardwareMap:%0A    
 def test
@@ -718,24 +718,28 @@
 eate():%0A    
+  
+  
 obj = Hardwa
@@ -746,16 +746,20 @@
 reMap()%0A
+    
     asse
@@ -778,16 +778,20 @@
 t None%0A%0A
+    
 def test
@@ -811,32 +811,36 @@
 _class_iface():%0A
+    
     # Assure the
@@ -876,32 +876,36 @@
 d interface%0A    
+ 
+   
 assert verifyCla
@@ -935,16 +935,20 @@
 reMap)%0A%0A
+    
 def test
@@ -979,24 +979,28 @@
 face():%0A    
+ 
+   
 # Assure ins
@@ -1046,24 +1046,28 @@
 d interface%0A
+    
     assert v

move tests into separate classes for hardware