'Test page with login at /sales/ordered_product/edit/'

def test_ordered_product_edit(self):

    response = self.client.post('/accounts/login', {'username': self.username, 'password': self.password})
    self.assertRedirects(response, '/')
    response = self.client.get(reverse('sales_ordered_product_edit', args=[self.ordered_product.id]))
    self.assertEquals(response.status_code, 200)
