kopia lustrzana https://github.com/EmbroidePy/pyembroidery
17 wiersze
410 B
Python
17 wiersze
410 B
Python
# External dependencies:
|
|
import unittest
|
|
from pyembroidery import *
|
|
|
|
|
|
class TestEmbpattern(unittest.TestCase):
|
|
|
|
def test_write(self):
|
|
pattern = EmbPattern()
|
|
pattern.stitch(0, 0)
|
|
pattern.stitch(0, 100)
|
|
pattern.stitch(100, 100)
|
|
pattern.stitch(100, 0)
|
|
pattern.stitch(0, 0)
|
|
pattern = pattern.get_normalized_pattern()
|
|
assert (pattern is not None)
|