Esempio n. 1
0
 def test_get_routing_key_device_group_name_and_id(self):
     properties = dict()
     properties["devicegroup"] = "test"
     properties["devicename"] = "testname"
     properties["deviceid"] = "hw1"
     routing_key = get_routing_key(properties)
     self.assertEquals(routing_key, "test.testname.hw1")
Esempio n. 2
0
 def test_get_routing_key_device_group_name_and_id(self):
     properties = dict()
     properties["devicegroup"] = "test"
     properties["devicename"] = "testname"
     properties["deviceid"] = "hw1"
     routing_key = get_routing_key(properties)
     self.assertEquals(routing_key, "test.testname.hw1")
Esempio n. 3
0
    def test_get_routing_key_device_group_only(self):

        properties = dict()
        properties["devicegroup"] = "test"
        routing_key = get_routing_key(properties)
        self.assertEquals(routing_key, "test")
Esempio n. 4
0
    def test_get_routing_key_device_group_only(self):

        properties = dict()
        properties["devicegroup"] = "test"
        routing_key = get_routing_key(properties)
        self.assertEquals(routing_key, "test")