'Test that the detail page is not found of the resource is on another site'

def test_layer_detail_page_slave_site(self):

    self.client.login(username=self.user, password=self.passwd)
    response = self.client.get(reverse('layer_detail', args=[Layer.objects.all()[0].alternate]))
    self.assertEqual(response.status_code, 404)
