'Testing /contacts/type/edit/(?P<type_id>\d+)'

def test_contact_type_edit_out(self):

    response = self.client.get(reverse('identities_type_edit', args=[self.contact_type.id]))
    self.assertRedirects(response, reverse('user_login'))
