Skip to content
Snippets Groups Projects
Commit 7c27133b authored by Piotr Gawron's avatar Piotr Gawron
Browse files

unit test for voucher type to string methods

parent a7f6a1dc
No related branches found
No related tags found
1 merge request!113Resolve "voucher functionality"
import logging
from django.test import TestCase
from web.tests.functions import create_voucher_type
logger = logging.getLogger(__name__)
class VoucherTypeTests(TestCase):
def test_to_string(self):
voucher_type = create_voucher_type()
self.assertTrue(voucher_type.code in str(voucher_type))
self.assertTrue(voucher_type.code in unicode(voucher_type))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment