4
from Configuration import Configuration
7
from MapCppTOFSlabHits import MapCppTOFSlabHits
9
class MapCppTOFSlabHitsTestCase(unittest.TestCase):
12
self.mapper = MAUS.MapCppTOFSlabHits()
13
self.c = Configuration()
16
success = self.mapper.birth(self. c.getConfigJSON())
17
self.assertTrue(success)
18
result = self.mapper.process("")
19
doc = json.loads(result)
20
self.assertTrue("errors" in doc)
21
self.assertTrue("bad_json_document" in doc["errors"])
24
def tearDownClass(self):
25
success = self.mapper.death()
27
raise Exception('InitializeFail', 'Could not start worker')
30
if __name__ == '__main__':
b'\\ No newline at end of file'