diff options
| author | Bryce Harrington <bryce@bryceharrington.org> | 2014-05-17 17:50:05 +0000 |
|---|---|---|
| committer | bryce <bryce@ubuntu.com> | 2014-05-17 17:50:05 +0000 |
| commit | c74948724847aa19f383b10ee3b644727b70fa24 (patch) | |
| tree | 7d30be8c16f4e0f018ab5a97ed154e922b285244 /share/extensions/test | |
| parent | extensions: Clarify licensing requirements in README (diff) | |
| download | inkscape-c74948724847aa19f383b10ee3b644727b70fa24.tar.gz inkscape-c74948724847aa19f383b10ee3b644727b70fa24.zip | |
extensions: Update tests for new barcode class names
The barcode class names appear to have been TitleCased.
(bzr r13390)
Diffstat (limited to 'share/extensions/test')
| -rwxr-xr-x | share/extensions/test/render_barcode.test.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/share/extensions/test/render_barcode.test.py b/share/extensions/test/render_barcode.test.py index 79f4ff979..e61e9c57c 100755 --- a/share/extensions/test/render_barcode.test.py +++ b/share/extensions/test/render_barcode.test.py @@ -10,15 +10,15 @@ import random import unittest # Allow import of the extension code and modules -sys.path.append('..') +sys.path.append('..') from render_barcode import * -import Barcode.EAN5 -import Barcode.EAN8 -import Barcode.EAN13 -import Barcode.UPCA -import Barcode.UPCE +import Barcode.Ean5 +import Barcode.Ean8 +import Barcode.Ean13 +import Barcode.Upca +import Barcode.Upce digits = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' ] @@ -43,23 +43,23 @@ class InsertBarcodeBasicTest(unittest.TestCase): def test_render_barcode_ian5(self): """Barcode IAN5""" - self.barcode_test( 'ean5', Barcode.EAN5 ) + self.barcode_test( 'ean5', Barcode.Ean5 ) def test_render_barcode_ian8(self): """Barcode IAN5""" - self.barcode_test( 'ean8', Barcode.EAN8 ) + self.barcode_test( 'ean8', Barcode.Ean8 ) def test_render_barcode_ian13(self): """Barcode IAN5""" - self.barcode_test( 'ean13', Barcode.EAN13 ) + self.barcode_test( 'ean13', Barcode.Ean13 ) def test_render_barcode_upca(self): """Barcode IAN5""" - self.barcode_test( 'upca', Barcode.UPCA ) + self.barcode_test( 'upca', Barcode.Upca ) def test_render_barcode_upce(self): """Barcode UPCE""" - self.barcode_test( 'upce', Barcode.UPCE ) + self.barcode_test( 'upce', Barcode.Upce ) def barcode_test(self, name, module): """Base module for all barcode testing""" |
