Home | History | Annotate | Download | only in afe

Lines Matching refs:labels

11         """Populate the test database with some hosts and labels."""
27 self.labels = [models.Label.objects.create(name=name) for name in
33 host.labels.add(platform)
40 self.label3 = self.labels[2]
43 self.label4 = self.labels[3]
46 self.label5 = self.labels[4]
49 self.hosts[0].labels.add(self.labels[0]) # label1
50 self.hosts[1].labels.add(self.labels[1]) # label2
51 self.label6 = self.labels[5]
52 self.label7 = self.labels[6]
53 self.label8 = self.labels[7]
57 self.hosts[hostnum].labels.add(self.label4) # an atomic group lavel
58 self.hosts[hostnum].labels.add(self.label6) # a normal label
59 self.hosts[6].labels.add(self.label7)
61 self.hosts[hostnum].labels.add(self.label5) # an atomic group lavel
62 self.hosts[hostnum].labels.add(self.label6) # a normal label
63 self.hosts[hostnum].labels.add(self.label7)