Example #1
0
  def test_remove_noAlert(self):
    alert2 = {
      'name': 'AlertName2',
      'uuid': '12'
    }
    controller = AlertCollector()
    controller._AlertCollector__buckets = {
      'TestCluster2': {
        'AlertName2': alert2
      }
    }
    controller.remove('TestCluster', 'AlertName1')

    self.assertEquals(controller._AlertCollector__buckets, {'TestCluster2': {'AlertName2': alert2}})