FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-escpos/test/test_function_cut.py at development · python-escpos/python-escpos · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
python-escpos
/
python-escpos
Public
Notifications
You must be signed in to change notification settings
Fork
316
Star
1.3k
Code
Issues
60
Pull requests
12
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-escpos
/
test
/
test_function_cut.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 453 Bytes
Breadcrumbs
python-escpos
/
test
/
test_function_cut.py
Copy path
File metadata and controls
17 lines (13 loc) · 453 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from
__future__
import
absolute_import
from
__future__
import
division
from
__future__
import
print_function
from
__future__
import
unicode_literals
import
six
import
escpos
.
printer
as
printer
from
escpos
.
constants
import
GS
def
test_cut_without_feed
():
"""Test cut without feeding paper"""
instance
=
printer
.
Dummy
()
instance
.
cut
(
feed
=
False
)
expected
=
GS
+
b'V'
+
six
.
int2byte
(
66
)
+
b'
\x00
'
assert
(
instance
.
output
==
expected
)
Back
|
FazBrowse Home
|
New Git URL