def setUpTestData(cls):

        regions = (
            Region(name='Region 1', slug='region-1'),
            Region(name='Region 2', slug='region-2'),
            Region(name='Region 3', slug='region-3'),
        )
        for region in regions:
            region.save()

        sites = (
            Site(name='Site 1', slug='site-1', region=regions[0]),
            Site(name='Site 2', slug='site-2', region=regions[1]),
            Site(name='Site 3', slug='site-3', region=regions[2]),
        )
        Site.objects.bulk_create(sites)

        rack_groups = (
            RackGroup(name='Rack Group 1', slug='rack-group-1', site=sites[0]),
            RackGroup(name='Rack Group 2', slug='rack-group-2', site=sites[1]),
            RackGroup(name='Rack Group 3', slug='rack-group-3', site=sites[2]),
        )
        for rackgroup in rack_groups:
            rackgroup.save()

        power_panels = (
            PowerPanel(name='Power Panel 1', site=sites[0], rack_group=rack_groups[0]),
            PowerPanel(name='Power Panel 2', site=sites[1], rack_group=rack_groups[1]),
            PowerPanel(name='Power Panel 3', site=sites[2], rack_group=rack_groups[2]),
        )
        PowerPanel.objects.bulk_create(power_panels)