Remove commented-out unit tests from BST to Monasca serializer
Change-Id: Ie2c735f9b38e22476adcc1083eeb103c6fb4817c
This commit is contained in:
parent
39a635ddd4
commit
addcc9af82
@ -2187,228 +2187,6 @@ class TestSerializer(unittest.TestCase):
|
||||
self.assertTrue(dim["stat"] == True)
|
||||
else:
|
||||
self.assertTrue(dim["queue-group"] == True)
|
||||
'''
|
||||
|
||||
def test_bst_trigger1(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger1)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger2(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger2)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger3(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger3)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger4(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger4)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger5(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger5)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger6(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger6)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger7(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger7)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger8(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger8)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger9(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger9)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger10(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger10)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_trigger11(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.trigger11)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds1(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds1)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds2(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds2)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds3(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds3)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds4(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds4)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds5(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds5)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds6(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds6)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds7(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds7)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds8(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds8)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds9(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds9)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds10(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds10)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
|
||||
def test_bst_thresholds11(self):
|
||||
rep = BSTParser()
|
||||
rep.process(self.thresholds11)
|
||||
serializer = BSTToMonasca()
|
||||
ret = serializer.serialize(rep)
|
||||
self.assertEqual(ret[0], True)
|
||||
data = json.loads(ret[1])
|
||||
print data
|
||||
print
|
||||
'''
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user