Example #1
0
  def test_put_clusterExists(self):
    cluster = 'TestCluster'
    alert = {
      'name': 'AlertName',
      'uuid': '12'
    }
    collector = AlertCollector()
    collector._AlertCollector__buckets = {
      'TestCluster': {}
    }
    collector.put(cluster, alert)

    self.assertEquals(collector._AlertCollector__buckets, {'TestCluster': {'AlertName': alert}})