You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_history.py 372B

123456789101112131415
  1. from django.test import TestCase
  2. from django import http
  3. from oscar.apps.customer import history
  4. class TestProductHistory(TestCase):
  5. def setUp(self):
  6. self.request = http.HttpRequest()
  7. self.response = http.HttpResponse()
  8. def test_starts_with_empty_list(self):
  9. products = history.get(self.request)
  10. self.assertEqual([], products)