'Verify that the module matches against what it should have.'

def verify(self, module):

    self.assertIsInstance(module, types.ModuleType)
    for (attr, value) in self.verification.items():
        self.assertEqual(getattr(module, attr), value)
    self.assertIn(module.__name__, sys.modules)
